From: Jeff Layton Date: Thu, 8 Jan 2026 17:13:05 +0000 (-0500) Subject: gfs2: add a setlease file operation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b514c333390746ce6dd1ebaa130dc534bda3b80;p=thirdparty%2Fkernel%2Flinux.git gfs2: add a setlease file operation gfs2_file_fops_nolock() already has this explicitly set, so it's only necessary to set this in gfs2_dir_fops_nolock(). A future patch will change the default behavior to reject lease attempts with -EINVAL when there is no setlease file operation defined. Signed-off-by: Jeff Layton Link: https://patch.msgid.link/20260108-setlease-6-20-v1-10-ea4dec9b67fa@kernel.org Acked-by: Al Viro Acked-by: Christoph Hellwig Signed-off-by: Christian Brauner --- diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 86376f0dbf3a5..6daa96d815e1e 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -1639,5 +1639,6 @@ const struct file_operations gfs2_dir_fops_nolock = { .release = gfs2_release, .fsync = gfs2_fsync, .llseek = default_llseek, + .setlease = generic_setlease, };