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/cifs | |
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/cifs')
-rw-r--r-- | fs/cifs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 003698365ece..99b9a2cc14b7 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -809,17 +809,14 @@ inode_has_hashed_dentries(struct inode *inode) | |||
809 | { | 809 | { |
810 | struct dentry *dentry; | 810 | struct dentry *dentry; |
811 | 811 | ||
812 | spin_lock(&dcache_lock); | ||
813 | spin_lock(&dcache_inode_lock); | 812 | spin_lock(&dcache_inode_lock); |
814 | list_for_each_entry(dentry, &inode->i_dentry, d_alias) { | 813 | list_for_each_entry(dentry, &inode->i_dentry, d_alias) { |
815 | if (!d_unhashed(dentry) || IS_ROOT(dentry)) { | 814 | if (!d_unhashed(dentry) || IS_ROOT(dentry)) { |
816 | spin_unlock(&dcache_inode_lock); | 815 | spin_unlock(&dcache_inode_lock); |
817 | spin_unlock(&dcache_lock); | ||
818 | return true; | 816 | return true; |
819 | } | 817 | } |
820 | } | 818 | } |
821 | spin_unlock(&dcache_inode_lock); | 819 | spin_unlock(&dcache_inode_lock); |
822 | spin_unlock(&dcache_lock); | ||
823 | return false; | 820 | return false; |
824 | } | 821 | } |
825 | 822 | ||