aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4file.c')
-rw-r--r--fs/nfs/nfs4file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c
index 22c35abbee9d..d0390516467c 100644
--- a/fs/nfs/nfs4file.c
+++ b/fs/nfs/nfs4file.c
@@ -26,7 +26,7 @@ static int
26nfs4_file_open(struct inode *inode, struct file *filp) 26nfs4_file_open(struct inode *inode, struct file *filp)
27{ 27{
28 struct nfs_open_context *ctx; 28 struct nfs_open_context *ctx;
29 struct dentry *dentry = filp->f_path.dentry; 29 struct dentry *dentry = file_dentry(filp);
30 struct dentry *parent = NULL; 30 struct dentry *parent = NULL;
31 struct inode *dir; 31 struct inode *dir;
32 unsigned openflags = filp->f_flags; 32 unsigned openflags = filp->f_flags;
@@ -57,7 +57,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
57 parent = dget_parent(dentry); 57 parent = dget_parent(dentry);
58 dir = d_inode(parent); 58 dir = d_inode(parent);
59 59
60 ctx = alloc_nfs_open_context(filp->f_path.dentry, filp->f_mode); 60 ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode);
61 err = PTR_ERR(ctx); 61 err = PTR_ERR(ctx);
62 if (IS_ERR(ctx)) 62 if (IS_ERR(ctx))
63 goto out; 63 goto out;