summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2026-01-12 16:01:21 +0300
committerChristian Brauner <brauner@kernel.org>2026-01-13 11:56:11 +0300
commit056a96e65f3e2a3293b99a336de92376407af5fa (patch)
tree3a2a52ee7ce5637f8a04081a59dbb54e461aced4
parent7e463614c97b643f60caa66caf13ce5f94ea91c1 (diff)
downloadlinux-056a96e65f3e2a3293b99a336de92376407af5fa.tar.xz
fuse: add setlease file operation
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> Link: https://patch.msgid.link/20260112130121.25965-1-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--fs/fuse/file.c1
1 files changed, 1 insertions, 0 deletions
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 = {