summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-16 01:41:16 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-25 05:34:47 +0200
commit3a93e17cf68b01fa29c7a2e861ce508dcd3401ca (patch)
tree7dbe8a9a7c9d1e23c94e8487424166ca636e66fd /fs/ecryptfs
parent9p: make v9fs_cache_inode_{get,put,set}_cookie empty inlines for !9P_CACHEFS (diff)
downloadlinux-3a93e17cf68b01fa29c7a2e861ce508dcd3401ca.tar.xz
linux-3a93e17cf68b01fa29c7a2e861ce508dcd3401ca.zip
ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/dentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/dentry.c b/fs/ecryptfs/dentry.c
index bf12ba5dd223..46e31c92e574 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) {