summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-20 17:47:03 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-09-01 23:44:57 +0200
commit1f24cd31c28178415158366b676c2e18be812940 (patch)
treeab5d97881cdd0b258f8cb78e39e2d7f011ac0fe8 /fs/nfs
parentbprm_fill_uid(): don't open-code file_inode() (diff)
downloadlinux-1f24cd31c28178415158366b676c2e18be812940.tar.xz
linux-1f24cd31c28178415158366b676c2e18be812940.zip
nfs_finish_open(): don't open-code file_inode()
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index dbab3caa15ed..bcb2500c49b8 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -2022,7 +2022,7 @@ static int nfs_finish_open(struct nfs_open_context *ctx,
err = finish_open(file, dentry, do_open);
if (err)
goto out;
- if (S_ISREG(file->f_path.dentry->d_inode->i_mode))
+ if (S_ISREG(file_inode(file)->i_mode))
nfs_file_set_open_context(file, ctx);
else
err = -EOPENSTALE;