Commit 3a93e17c authored by Al Viro's avatar Al Viro

ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ceaec15d
...@@ -51,7 +51,7 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags) ...@@ -51,7 +51,7 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags)
return -ECHILD; return -ECHILD;
lower_dentry = ecryptfs_dentry_to_lower(dentry); 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; goto out;
rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags); rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags);
if (dentry->d_inode) { if (dentry->d_inode) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment