Skip to content

Commit 056a96e

Browse files
jtlaytonbrauner
authored andcommitted
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>
1 parent 7e46361 commit 056a96e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/fuse/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,6 +3177,7 @@ static const struct file_operations fuse_file_operations = {
31773177
.poll = fuse_file_poll,
31783178
.fallocate = fuse_file_fallocate,
31793179
.copy_file_range = fuse_copy_file_range,
3180+
.setlease = generic_setlease,
31803181
};
31813182

31823183
static const struct address_space_operations fuse_file_aops = {

0 commit comments

Comments
 (0)