diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:49:38 -0500 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:50:23 -0500 |
commit | b5c84bf6f6fa3a7dfdcb556023a62953574b60ee (patch) | |
tree | 7a2c299a180713e21d5cb653cb933121adf53c31 /fs/nfs/namespace.c | |
parent | 949854d02455080d20cd3e1db28a3a18daf7599d (diff) |
fs: dcache remove dcache_lock
dcache_lock no longer protects anything. remove it.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index 78c0ebb0b07c..74aaf3963c10 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -60,7 +60,6 @@ rename_retry: | |||
60 | 60 | ||
61 | seq = read_seqbegin(&rename_lock); | 61 | seq = read_seqbegin(&rename_lock); |
62 | rcu_read_lock(); | 62 | rcu_read_lock(); |
63 | spin_lock(&dcache_lock); | ||
64 | while (!IS_ROOT(dentry) && dentry != droot) { | 63 | while (!IS_ROOT(dentry) && dentry != droot) { |
65 | namelen = dentry->d_name.len; | 64 | namelen = dentry->d_name.len; |
66 | buflen -= namelen + 1; | 65 | buflen -= namelen + 1; |
@@ -71,7 +70,6 @@ rename_retry: | |||
71 | *--end = '/'; | 70 | *--end = '/'; |
72 | dentry = dentry->d_parent; | 71 | dentry = dentry->d_parent; |
73 | } | 72 | } |
74 | spin_unlock(&dcache_lock); | ||
75 | rcu_read_unlock(); | 73 | rcu_read_unlock(); |
76 | if (read_seqretry(&rename_lock, seq)) | 74 | if (read_seqretry(&rename_lock, seq)) |
77 | goto rename_retry; | 75 | goto rename_retry; |
@@ -91,7 +89,6 @@ rename_retry: | |||
91 | memcpy(end, base, namelen); | 89 | memcpy(end, base, namelen); |
92 | return end; | 90 | return end; |
93 | Elong_unlock: | 91 | Elong_unlock: |
94 | spin_unlock(&dcache_lock); | ||
95 | rcu_read_unlock(); | 92 | rcu_read_unlock(); |
96 | if (read_seqretry(&rename_lock, seq)) | 93 | if (read_seqretry(&rename_lock, seq)) |
97 | goto rename_retry; | 94 | goto rename_retry; |