Skip to content

Commit

Permalink
nfs: lock() vs unlock() typo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Al Viro committed Mar 21, 2011
1 parent a872d51 commit 1c34092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen)
namelen--;
buflen -= namelen;
if (buflen < 0) {
spin_lock(&dentry->d_lock);
spin_unlock(&dentry->d_lock);
rcu_read_unlock();
goto Elong;
}
Expand All @@ -108,7 +108,7 @@ char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen)
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;
Expand Down

0 comments on commit 1c34092

Please sign in to comment.