mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
nfs_finish_open(): don't open-code file_inode()
Reviewed-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
1 parent
e6ae438124
commit
1f24cd31c2
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user