diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-01-08 12:13:19 -0500 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-01-12 10:55:48 +0100 |
| commit | 51e49111c00bee76ca403adf7cd617b71a9a0da4 (patch) | |
| tree | 9604640012fd39594bbf5978291f0cb00e472c47 /fs/libfs.c | |
| parent | 2b10994be716b07d881ad0f966d6a4bb13b20750 (diff) | |
| download | linux-next-51e49111c00bee76ca403adf7cd617b71a9a0da4.tar.gz linux-next-51e49111c00bee76ca403adf7cd617b71a9a0da4.zip | |
fs: remove simple_nosetlease()
Setting ->setlease() to a NULL pointer now has the same effect as
setting it to simple_nosetlease(). Remove all of the setlease
file_operations that are set to simple_nosetlease, and the function
itself.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260108-setlease-6-20-v1-24-ea4dec9b67fa@kernel.org
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/libfs.c')
| -rw-r--r-- | fs/libfs.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 697c6d5fc127..f1860dff86f2 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -1700,24 +1700,6 @@ struct inode *alloc_anon_inode(struct super_block *s) EXPORT_SYMBOL(alloc_anon_inode); /** - * simple_nosetlease - generic helper for prohibiting leases - * @filp: file pointer - * @arg: type of lease to obtain - * @flp: new lease supplied for insertion - * @priv: private data for lm_setup operation - * - * Generic helper for filesystems that do not wish to allow leases to be set. - * All arguments are ignored and it just returns -EINVAL. - */ -int -simple_nosetlease(struct file *filp, int arg, struct file_lease **flp, - void **priv) -{ - return -EINVAL; -} -EXPORT_SYMBOL(simple_nosetlease); - -/** * simple_get_link - generic helper to get the target of "fast" symlinks * @dentry: not used here * @inode: the symlink inode |
