summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 11:22:07 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-21 04:45:50 (GMT)
commit1c34092adf1feaba25b7c739cc4def2751f4fa05 (patch)
tree4950fc9c2476eb07c590bb9156906004b6a3c1ad
parenta872d5101008b091035d579897bccefdeff70def (diff)
downloadlinux-1c34092adf1feaba25b7c739cc4def2751f4fa05.tar.xz
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>
-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 c0b8344..bf1c680 100644
--- a/fs/nfs/namespace.c
+++ b/fs/nfs/namespace.c
@@ -98,7 +98,7 @@ rename_retry:
namelen--;
buflen -= namelen;
if (buflen < 0) {
- spin_lock(&dentry->d_lock);
+ spin_unlock(&dentry->d_lock);
rcu_read_unlock();
goto Elong;
}
@@ -108,7 +108,7 @@ rename_retry:
rcu_read_unlock();
return end;
Elong_unlock:
- spin_lock(&dentry->d_lock);
+ spin_unlock(&dentry->d_lock);
rcu_read_unlock();
if (read_seqretry(&rename_lock, seq))
goto rename_retry;