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 <jlayton@kernel.org>
Link: https://patch.msgid.link/20260108-setlease-6-20-v1-10-ea4dec9b67fa@kernel.org
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Jeff Layton 2026-01-08 12:13:05 -05:00 committed by Christian Brauner
parent a9acc8422f
commit 3b514c3333
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View File

@ -1639,5 +1639,6 @@ const struct file_operations gfs2_dir_fops_nolock = {
.release = gfs2_release,
.fsync = gfs2_fsync,
.llseek = default_llseek,
.setlease = generic_setlease,
};