summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 14:22:07 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-21 00:45:50 -0400
commit1c34092adf1feaba25b7c739cc4def2751f4fa05 (patch)
tree4950fc9c2476eb07c590bb9156906004b6a3c1ad /fs/nfs
parenta872d5101008b091035d579897bccefdeff70def (diff)
downloadlinux-3.10-1c34092adf1feaba25b7c739cc4def2751f4fa05.tar.gz
linux-3.10-1c34092adf1feaba25b7c739cc4def2751f4fa05.tar.bz2
linux-3.10-1c34092adf1feaba25b7c739cc4def2751f4fa05.zip
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 c0b8344db0c..bf1c68009ff 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;