]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/ocfs2/dcache.c
fs: dcache per-inode inode alias locking
[mv-sheeva.git] / fs / ocfs2 / dcache.c
index 0310b16a723898c356138cf0cb07c4aac25b57e3..6d80ecc7834f55ff2e7151b38cc6540ad1b08b51 100644 (file)
@@ -175,7 +175,7 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,
        struct list_head *p;
        struct dentry *dentry = NULL;
 
-       spin_lock(&dcache_inode_lock);
+       spin_lock(&inode->i_lock);
        list_for_each(p, &inode->i_dentry) {
                dentry = list_entry(p, struct dentry, d_alias);
 
@@ -193,7 +193,7 @@ struct dentry *ocfs2_find_local_alias(struct inode *inode,
                dentry = NULL;
        }
 
-       spin_unlock(&dcache_inode_lock);
+       spin_unlock(&inode->i_lock);
 
        return dentry;
 }