Skip to content

Commit 3a93e17

Browse files
author
Al Viro
committed
ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ceaec15 commit 3a93e17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ecryptfs/dentry.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags)
5151
return -ECHILD;
5252

5353
lower_dentry = ecryptfs_dentry_to_lower(dentry);
54-
if (!lower_dentry->d_op || !lower_dentry->d_op->d_revalidate)
54+
if (!(lower_dentry->d_flags & DCACHE_OP_REVALIDATE))
5555
goto out;
5656
rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags);
5757
if (dentry->d_inode) {

0 commit comments

Comments
 (0)