summaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-11-25 14:48:37 +0100
committerJeff Layton <jlayton@kernel.org>2023-01-11 12:52:43 +0100
commitc65454a947263dfdf482076388aaed60af84ca2f (patch)
tree9c022ee614ba4907ae39f49a20af22c5981ad61f /fs/open.c
parentfilelock: move file locking definitions to separate header file (diff)
downloadlinux-c65454a947263dfdf482076388aaed60af84ca2f.tar.xz
linux-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 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 9b1c08298a07..117ad27922a1 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -871,7 +871,7 @@ static int do_dentry_open(struct file *f,
if (error)
goto cleanup_all;
- error = break_lease(locks_inode(f), f->f_flags);
+ error = break_lease(file_inode(f), f->f_flags);
if (error)
goto cleanup_all;