fs: dcache remove dcache_lock
dcache_lock no longer protects anything. remove it. Signed-off-by: Nick Piggin <npiggin@kernel.dk>
This commit is contained in:
@@ -47,24 +47,20 @@ find_acceptable_alias(struct dentry *result,
|
||||
if (acceptable(context, result))
|
||||
return result;
|
||||
|
||||
spin_lock(&dcache_lock);
|
||||
spin_lock(&dcache_inode_lock);
|
||||
list_for_each_entry(dentry, &result->d_inode->i_dentry, d_alias) {
|
||||
dget_locked(dentry);
|
||||
spin_unlock(&dcache_inode_lock);
|
||||
spin_unlock(&dcache_lock);
|
||||
if (toput)
|
||||
dput(toput);
|
||||
if (dentry != result && acceptable(context, dentry)) {
|
||||
dput(result);
|
||||
return dentry;
|
||||
}
|
||||
spin_lock(&dcache_lock);
|
||||
spin_lock(&dcache_inode_lock);
|
||||
toput = dentry;
|
||||
}
|
||||
spin_unlock(&dcache_inode_lock);
|
||||
spin_unlock(&dcache_lock);
|
||||
|
||||
if (toput)
|
||||
dput(toput);
|
||||
|
Reference in New Issue
Block a user