Wrapfs: support LOOKUP_RCU in ->d_revalidate
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:29 +0000 (00:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 26 May 2013 03:52:27 +0000 (23:52 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/dentry.c

index 546ef284bebd35ef7e5d924b7aa62410cd4e120e..b173153c445baeca6b8aeee4bd054718f906a43c 100644 (file)
@@ -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)