aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 64ee240f3c80..df8c03a02161 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1406,11 +1406,15 @@ no_open:
1406static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) 1406static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
1407{ 1407{
1408 struct dentry *parent = NULL; 1408 struct dentry *parent = NULL;
1409 struct inode *inode = dentry->d_inode; 1409 struct inode *inode;
1410 struct inode *dir; 1410 struct inode *dir;
1411 struct nfs_open_context *ctx; 1411 struct nfs_open_context *ctx;
1412 int openflags, ret = 0; 1412 int openflags, ret = 0;
1413 1413
1414 if (nd->flags & LOOKUP_RCU)
1415 return -ECHILD;
1416
1417 inode = dentry->d_inode;
1414 if (!is_atomic_open(nd) || d_mountpoint(dentry)) 1418 if (!is_atomic_open(nd) || d_mountpoint(dentry))
1415 goto no_open; 1419 goto no_open;
1416 1420