VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / 9p / vfs_dentry.c
index a345b2d659cc8ac638ddb8dbd2d39535e442ec4b..bd456c668d3997959220eaacd5aebf1b1da19309 100644 (file)
@@ -53,7 +53,7 @@ static int v9fs_cached_dentry_delete(const struct dentry *dentry)
                 dentry, dentry);
 
        /* Don't cache negative dentries */
-       if (!dentry->d_inode)
+       if (d_really_is_negative(dentry))
                return 1;
        return 0;
 }
@@ -83,7 +83,7 @@ static int v9fs_lookup_revalidate(struct dentry *dentry, unsigned int flags)
        if (flags & LOOKUP_RCU)
                return -ECHILD;
 
-       inode = dentry->d_inode;
+       inode = d_inode(dentry);
        if (!inode)
                goto out_valid;