summaryrefslogtreecommitdiffstats
path: root/fs/nfs/namespace.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 12:22:07 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-21 05:45:50 +0100
commit1c34092adf1feaba25b7c739cc4def2751f4fa05 (patch)
tree4950fc9c2476eb07c590bb9156906004b6a3c1ad /fs/nfs/namespace.c
parentpstore: fix leaking ->i_private (diff)
downloadlinux-1c34092adf1feaba25b7c739cc4def2751f4fa05.tar.xz
linux-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/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:
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;