1
0
Fork 0

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>
hifive-unleashed-5.1
Dan Carpenter 2011-03-20 14:22:07 +03:00 committed by Al Viro
parent a872d51010
commit 1c34092adf
1 changed files with 2 additions and 2 deletions

View File

@ -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;