VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / nfs / nfs4file.c
index 0181cde1d102ab5340ef7be230dc2e3ca036993c..619eca34e70fcc258b04b824f62d95b2f142765a 100644 (file)
@@ -46,7 +46,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
        openflags &= ~(O_CREAT|O_EXCL);
 
        parent = dget_parent(dentry);
-       dir = parent->d_inode;
+       dir = d_inode(parent);
 
        ctx = alloc_nfs_open_context(filp->f_path.dentry, filp->f_mode);
        err = PTR_ERR(ctx);
@@ -74,7 +74,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
                        goto out_drop;
                }
        }
-       if (inode != dentry->d_inode)
+       if (inode != d_inode(dentry))
                goto out_drop;
 
        nfs_set_verifier(dentry, nfs_save_change_attribute(dir));