]> Pileus Git - ~andy/linux/commitdiff
ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 15 Sep 2013 23:41:16 +0000 (19:41 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Oct 2013 03:34:47 +0000 (23:34 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ecryptfs/dentry.c

index bf12ba5dd223befe93ce786c3a3848cdf5e38fcd..46e31c92e574dbd0ae38a0badbc6222943f3ebc3 100644 (file)
@@ -51,7 +51,7 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags)
                return -ECHILD;
 
        lower_dentry = ecryptfs_dentry_to_lower(dentry);
-       if (!lower_dentry->d_op || !lower_dentry->d_op->d_revalidate)
+       if (!(lower_dentry->d_flags & DCACHE_OP_REVALIDATE))
                goto out;
        rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags);
        if (dentry->d_inode) {