From: Al Viro Date: Sun, 15 Sep 2013 23:41:16 +0000 (-0400) Subject: ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op X-Git-Tag: v3.13-rc1~107^2~99 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;ds=sidebyside;h=3a93e17cf68b01fa29c7a2e861ce508dcd3401ca;p=~andy%2Flinux ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op Signed-off-by: Al Viro --- diff --git a/fs/ecryptfs/dentry.c b/fs/ecryptfs/dentry.c index bf12ba5dd22..46e31c92e57 100644 --- a/fs/ecryptfs/dentry.c +++ b/fs/ecryptfs/dentry.c @@ -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) {