From 06ebc48dc90575515798d6460feacc42560e18eb Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 19 Nov 2013 17:23:31 -0500 Subject: [PATCH] Wrapfs: use DCACHE_OP_REVALIDATE flag in ->d_revalidate Signed-off-by: Erez Zadok --- fs/wrapfs/dentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/wrapfs/dentry.c b/fs/wrapfs/dentry.c index ed1a0cb9f0ce..196c6eb8f9ae 100644 --- a/fs/wrapfs/dentry.c +++ b/fs/wrapfs/dentry.c @@ -27,7 +27,7 @@ static int wrapfs_d_revalidate(struct dentry *dentry, unsigned int flags) wrapfs_get_lower_path(dentry, &lower_path); lower_dentry = lower_path.dentry; - if (!lower_dentry->d_op || !lower_dentry->d_op->d_revalidate) + if (!(lower_dentry->d_flags & DCACHE_OP_REVALIDATE)) goto out; err = lower_dentry->d_op->d_revalidate(lower_dentry, flags); out: -- 2.43.0