mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
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:
parent
a9acc8422f
commit
3b514c3333
|
|
@ -1639,5 +1639,6 @@ const struct file_operations gfs2_dir_fops_nolock = {
|
|||
.release = gfs2_release,
|
||||
.fsync = gfs2_fsync,
|
||||
.llseek = default_llseek,
|
||||
.setlease = generic_setlease,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user