hfsplus: convert tree_lock to mutex
tree_lock is used as mutex so make it a mutex. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Christoph Hellwig <hch@tuxera.com>
This commit is contained in:

committed by
Christoph Hellwig

parent
7fcc99f4f2
commit
467c3d9cd5
@@ -30,7 +30,7 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id)
|
||||
if (!tree)
|
||||
return NULL;
|
||||
|
||||
init_MUTEX(&tree->tree_lock);
|
||||
mutex_init(&tree->tree_lock);
|
||||
spin_lock_init(&tree->hash_lock);
|
||||
tree->sb = sb;
|
||||
tree->cnid = id;
|
||||
|
Reference in New Issue
Block a user