diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-20 18:47:03 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-02 00:44:57 +0300 |
commit | 1f24cd31c28178415158366b676c2e18be812940 (patch) | |
tree | ab5d97881cdd0b258f8cb78e39e2d7f011ac0fe8 /fs/nfs/dir.c | |
parent | e6ae43812460450bdb42f14c5813ac42d6bc9067 (diff) | |
download | linux-1f24cd31c28178415158366b676c2e18be812940.tar.xz |
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/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
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; |