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 0181cde1d102..619eca34e70f 100644
--- a/fs/nfs/nfs4file.c
+++ b/fs/nfs/nfs4file.c
@@ -46,7 +46,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
46 openflags &= ~(O_CREAT|O_EXCL); 46 openflags &= ~(O_CREAT|O_EXCL);
47 47
48 parent = dget_parent(dentry); 48 parent = dget_parent(dentry);
49 dir = parent->d_inode; 49 dir = d_inode(parent);
50 50
51 ctx = alloc_nfs_open_context(filp->f_path.dentry, filp->f_mode); 51 ctx = alloc_nfs_open_context(filp->f_path.dentry, filp->f_mode);
52 err = PTR_ERR(ctx); 52 err = PTR_ERR(ctx);
@@ -74,7 +74,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
74 goto out_drop; 74 goto out_drop;
75 } 75 }
76 } 76 }
77 if (inode != dentry->d_inode) 77 if (inode != d_inode(dentry))
78 goto out_drop; 78 goto out_drop;
79 79
80 nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); 80 nfs_set_verifier(dentry, nfs_save_change_attribute(dir));