]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/ocfs2/dcache.c
fs: dcache remove dcache_lock
[mv-sheeva.git] / fs / ocfs2 / dcache.c
index c31b5c647ac78e0761813cfcd5a4a9c53973842d..b7de749bdd1253b6b0f612d5bcacf4b9d2e0b8a3 100644 (file)
@@ -169,7 +169,6 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,
        struct list_head *p;
        struct dentry *dentry = NULL;
 
-       spin_lock(&dcache_lock);
        spin_lock(&dcache_inode_lock);
        list_for_each(p, &inode->i_dentry) {
                dentry = list_entry(p, struct dentry, d_alias);
@@ -189,7 +188,6 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,
        }
 
        spin_unlock(&dcache_inode_lock);
-       spin_unlock(&dcache_lock);
 
        return dentry;
 }