VFS: normal filesystems (and lustre): d_inode() annotations
[firefly-linux-kernel-4.4.55.git] / fs / kernfs / dir.c
index 6acc9648f9869727dc9fb030d281d37bffdf3277..f131fc23ffc4c18f03a9764973fa998bf0e5f79e 100644 (file)
@@ -444,7 +444,7 @@ static int kernfs_dop_revalidate(struct dentry *dentry, unsigned int flags)
                return -ECHILD;
 
        /* Always perform fresh lookup for negatives */
-       if (!dentry->d_inode)
+       if (d_really_is_negative(dentry))
                goto out_bad_unlocked;
 
        kn = dentry->d_fsdata;