aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/namespace.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-21 13:06:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-21 13:06:51 -0400
commit10effcb548c170d59ea1d2152f2ee0ad45ce4c9d (patch)
tree6a1bf04ed66a1dcd242e8b2bd0c86690194cc09f /fs/nfs/namespace.c
parentc3ca48f062a37c2f79560a9b0b9f1b08039aa248 (diff)
parent0f60f240d522772467c7d2cebedb910748c78ed4 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: FS: lookup_mnt() is only used in the core fs routines now bfs: fix bitmap size argument to find_first_zero_bit() fs: Use BUG_ON(!mnt) at dentry_open(). fs: devpts_pty_new() return -ENOMEM if dentry allocation failed nfs: lock() vs unlock() typo pstore: fix leaking ->i_private introduce sys_syncfs to sync a single file system Small typo fix... Filesystem: fifo: Fixed coding style issue. fs/inode: Fix kernel-doc format for inode_init_owner select: remove unused MAX_SELECT_SECONDS vfs: cleanup do_vfs_ioctl()
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r--fs/nfs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c
index c0b8344db0c6..bf1c68009ffd 100644
--- a/fs/nfs/namespace.c
+++ b/fs/nfs/namespace.c
@@ -98,7 +98,7 @@ rename_retry:
98 namelen--; 98 namelen--;
99 buflen -= namelen; 99 buflen -= namelen;
100 if (buflen < 0) { 100 if (buflen < 0) {
101 spin_lock(&dentry->d_lock); 101 spin_unlock(&dentry->d_lock);
102 rcu_read_unlock(); 102 rcu_read_unlock();
103 goto Elong; 103 goto Elong;
104 } 104 }
@@ -108,7 +108,7 @@ rename_retry:
108 rcu_read_unlock(); 108 rcu_read_unlock();
109 return end; 109 return end;
110Elong_unlock: 110Elong_unlock:
111 spin_lock(&dentry->d_lock); 111 spin_unlock(&dentry->d_lock);
112 rcu_read_unlock(); 112 rcu_read_unlock();
113 if (read_seqretry(&rename_lock, seq)) 113 if (read_seqretry(&rename_lock, seq))
114 goto rename_retry; 114 goto rename_retry;