From 056a96e65f3e2a3293b99a336de92376407af5fa Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 12 Jan 2026 08:01:21 -0500 Subject: [PATCH] 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 Link: https://patch.msgid.link/20260112130121.25965-1-jlayton@kernel.org Signed-off-by: Christian Brauner --- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 01bc894e9c2ba..2956f6cb598df 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.47.3