mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fuse: add setlease file operation
@ 2026-01-12 13:01 Jeff Layton
  2026-01-13  8:56 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2026-01-12 13:01 UTC (permalink / raw)
  To: brauner; +Cc: miklos, linux-fsdevel, jack, viro, linux-kernel

Add the setlease file_operation to fuse_file_operations, pointing to
generic_setlease.  A future patch will change the default behavior to
reject lease attempts with -EINVAL when there is no setlease file
operation defined. Add generic_setlease to retain the ability to set
leases on this filesystem.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
As Jan pointed out in review, this patch is also needed in the
vfs-7.0.leases branch, as I missed FUSE. Can you drop this patch on top
of that branch, preferably ahead of the patch that changes
kernel_setlease()? Let me know if you'd rather I resend the whole pile.

 fs/fuse/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 01bc894e9c2b..2956f6cb598d 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3177,6 +3177,7 @@ static const struct file_operations fuse_file_operations = {
 	.poll		= fuse_file_poll,
 	.fallocate	= fuse_file_fallocate,
 	.copy_file_range = fuse_copy_file_range,
+	.setlease	= generic_setlease,
 };
 
 static const struct address_space_operations fuse_file_aops  = {
-- 
2.52.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fuse: add setlease file operation
  2026-01-12 13:01 [PATCH] fuse: add setlease file operation Jeff Layton
@ 2026-01-13  8:56 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2026-01-13  8:56 UTC (permalink / raw)
  To: Jeff Layton
  Cc: Christian Brauner, miklos, linux-fsdevel, jack, viro, linux-kernel

On Mon, 12 Jan 2026 08:01:21 -0500, Jeff Layton wrote:
> Add the setlease file_operation to fuse_file_operations, pointing to
> generic_setlease.  A future patch will change the default behavior to
> reject lease attempts with -EINVAL when there is no setlease file
> operation defined. Add generic_setlease to retain the ability to set
> leases on this filesystem.
> 
> 
> [...]

Applied to the vfs-7.0.leases branch of the vfs/vfs.git tree.
Patches in the vfs-7.0.leases branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.0.leases

[1/1] fuse: add setlease file operation
      https://git.kernel.org/vfs/vfs/c/056a96e65f3e

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-13  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-12 13:01 [PATCH] fuse: add setlease file operation Jeff Layton
2026-01-13  8:56 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®