nfs: lock() vs unlock() typo
authorDan Carpenter <error27@gmail.com>
Sun, 20 Mar 2011 11:22:07 +0000 (14:22 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 Mar 2011 04:45:50 +0000 (00:45 -0400)
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>
fs/nfs/namespace.c

index c0b8344db0c65129d08d6a299a051fed0ce430fd..bf1c68009ffd8b64001ecdd4d9f266654d2a3656 100644 (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;
This page took 0.029889 seconds and 5 git commands to generate.