aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 07:22:07 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-21 00:45:50 -0400
commit1c34092adf1feaba25b7c739cc4def2751f4fa05 (patch)
tree4950fc9c2476eb07c590bb9156906004b6a3c1ad /fs/nfs
parenta872d5101008b091035d579897bccefdeff70def (diff)
nfs: lock() vs unlock() typo
These should be spin_unlock() instead of spin_lock(). It's a typo. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs')
-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;