]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfs/dir.c
Merge branch 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mv-sheeva.git] / fs / nfs / dir.c
index 64ee240f3c80776748936db8929344426d970079..df8c03a02161c45270d1ff45c53945308fcd8208 100644 (file)
@@ -1406,11 +1406,15 @@ no_open:
 static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
        struct dentry *parent = NULL;
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode;
        struct inode *dir;
        struct nfs_open_context *ctx;
        int openflags, ret = 0;
 
+       if (nd->flags & LOOKUP_RCU)
+               return -ECHILD;
+
+       inode = dentry->d_inode;
        if (!is_atomic_open(nd) || d_mountpoint(dentry))
                goto no_open;