diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 23:14:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 23:14:13 -0500 |
commit | db9effe99adc67c53e6aedadadd2aa9a02342e48 (patch) | |
tree | efe7ebfe951972568189ef2548130f0abd515210 /fs/nfs | |
parent | 9c4bc1c2befbbdce4b9fd526e67a7a2ea143ffa2 (diff) | |
parent | f20877d94a74557b7c28b4ed8920d834c31e0ea5 (diff) |
Merge branch 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git/npiggin/linux-npiggin
* 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git/npiggin/linux-npiggin:
fs: fix do_last error case when need_reval_dot
nfs: add missing rcu-walk check
fs: hlist UP debug fixup
fs: fix dropping of rcu-walk from force_reval_path
fs: force_reval_path drop rcu-walk before d_invalidate
fs: small rcu-walk documentation fixes
Fixed up trivial conflicts in Documentation/filesystems/porting
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dir.c | 6 |
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: | |||
1406 | static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) | 1406 | static 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 | ||