From 0cbe619a5cd40ee9a0feca8a2694af923f6a18dc Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 6 Sep 2011 00:10:29 -0400 Subject: [PATCH] Wrapfs: support LOOKUP_RCU in ->d_revalidate Signed-off-by: Erez Zadok --- fs/wrapfs/dentry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/wrapfs/dentry.c b/fs/wrapfs/dentry.c index 546ef284bebd..b173153c445b 100644 --- a/fs/wrapfs/dentry.c +++ b/fs/wrapfs/dentry.c @@ -22,6 +22,9 @@ static int wrapfs_d_revalidate(struct dentry *dentry, struct nameidata *nd) struct dentry *lower_dentry; int err = 1; + if (nd && nd->flags & LOOKUP_RCU) + return -ECHILD; + wrapfs_get_lower_path(dentry, &lower_path); lower_dentry = lower_path.dentry; if (!lower_dentry->d_op || !lower_dentry->d_op->d_revalidate) -- 2.43.0