diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-11-25 08:48:37 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2023-01-11 06:52:43 -0500 |
commit | c65454a947263dfdf482076388aaed60af84ca2f (patch) | |
tree | 9c022ee614ba4907ae39f49a20af22c5981ad61f /include/linux/filelock.h | |
parent | 5970e15dbcfeb0ed3a0bf1954f35bbe60a048754 (diff) | |
download | lwn-c65454a947263dfdf482076388aaed60af84ca2f.tar.gz lwn-c65454a947263dfdf482076388aaed60af84ca2f.zip |
fs: remove locks_inode
locks_inode was turned into a wrapper around file_inode in de2a4a501e71
(Partially revert "locks: fix file locking on overlayfs"). Finish
replacing locks_inode invocations everywhere with file_inode.
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'include/linux/filelock.h')
-rw-r--r-- | include/linux/filelock.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/filelock.h b/include/linux/filelock.h index dc5056a66e2c..efcdd1631d9b 100644 --- a/include/linux/filelock.h +++ b/include/linux/filelock.h @@ -133,8 +133,6 @@ struct file_lock_context { struct list_head flc_lease; }; -#define locks_inode(f) file_inode(f) - #ifdef CONFIG_FILE_LOCKING int fcntl_getlk(struct file *, unsigned int, struct flock *); int fcntl_setlk(unsigned int, struct file *, unsigned int, @@ -345,7 +343,7 @@ locks_inode_context(const struct inode *inode) static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) { - return locks_lock_inode_wait(locks_inode(filp), fl); + return locks_lock_inode_wait(file_inode(filp), fl); } #ifdef CONFIG_FILE_LOCKING |