]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gfs2: add a setlease file operation
authorJeff Layton <jlayton@kernel.org>
Thu, 8 Jan 2026 17:13:05 +0000 (12:13 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 09:55:46 +0000 (10:55 +0100)
commit3b514c333390746ce6dd1ebaa130dc534bda3b80
tree5c8e36daf0b42e9a03d959c2387f298ccddb819f
parenta9acc8422ffbaa018337a4bcb6fabbddb6b9e18c
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>
fs/gfs2/file.c