diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/namespace.c | 4 |
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: | |||
98 | namelen--; | 98 | namelen--; |
99 | buflen -= namelen; | 99 | buflen -= namelen; |
100 | if (buflen < 0) { | 100 | if (buflen < 0) { |
101 | spin_lock(&dentry->d_lock); | 101 | spin_unlock(&dentry->d_lock); |
102 | rcu_read_unlock(); | 102 | rcu_read_unlock(); |
103 | goto Elong; | 103 | goto Elong; |
104 | } | 104 | } |
@@ -108,7 +108,7 @@ rename_retry: | |||
108 | rcu_read_unlock(); | 108 | rcu_read_unlock(); |
109 | return end; | 109 | return end; |
110 | Elong_unlock: | 110 | Elong_unlock: |
111 | spin_lock(&dentry->d_lock); | 111 | spin_unlock(&dentry->d_lock); |
112 | rcu_read_unlock(); | 112 | rcu_read_unlock(); |
113 | if (read_seqretry(&rename_lock, seq)) | 113 | if (read_seqretry(&rename_lock, seq)) |
114 | goto rename_retry; | 114 | goto rename_retry; |