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/exportfs/expfs.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/exportfs/expfs.c')
-rw-r--r-- | fs/exportfs/expfs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 84b8c460a781..53a5c08fb63c 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c | |||
@@ -47,24 +47,20 @@ find_acceptable_alias(struct dentry *result, | |||
47 | if (acceptable(context, result)) | 47 | if (acceptable(context, result)) |
48 | return result; | 48 | return result; |
49 | 49 | ||
50 | spin_lock(&dcache_lock); | ||
51 | spin_lock(&dcache_inode_lock); | 50 | spin_lock(&dcache_inode_lock); |
52 | list_for_each_entry(dentry, &result->d_inode->i_dentry, d_alias) { | 51 | list_for_each_entry(dentry, &result->d_inode->i_dentry, d_alias) { |
53 | dget_locked(dentry); | 52 | dget_locked(dentry); |
54 | spin_unlock(&dcache_inode_lock); | 53 | spin_unlock(&dcache_inode_lock); |
55 | spin_unlock(&dcache_lock); | ||
56 | if (toput) | 54 | if (toput) |
57 | dput(toput); | 55 | dput(toput); |
58 | if (dentry != result && acceptable(context, dentry)) { | 56 | if (dentry != result && acceptable(context, dentry)) { |
59 | dput(result); | 57 | dput(result); |
60 | return dentry; | 58 | return dentry; |
61 | } | 59 | } |
62 | spin_lock(&dcache_lock); | ||
63 | spin_lock(&dcache_inode_lock); | 60 | spin_lock(&dcache_inode_lock); |
64 | toput = dentry; | 61 | toput = dentry; |
65 | } | 62 | } |
66 | spin_unlock(&dcache_inode_lock); | 63 | spin_unlock(&dcache_inode_lock); |
67 | spin_unlock(&dcache_lock); | ||
68 | 64 | ||
69 | if (toput) | 65 | if (toput) |
70 | dput(toput); | 66 | dput(toput); |