Lines Matching refs:tree_lock
627 spin_lock(&ctl->tree_lock); in merge_space_tree()
641 spin_unlock(&ctl->tree_lock); in merge_space_tree()
647 spin_unlock(&ctl->tree_lock); in merge_space_tree()
746 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
748 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
764 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
768 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
854 spin_lock(&ctl->tree_lock); in load_free_space_cache()
857 spin_unlock(&ctl->tree_lock); in load_free_space_cache()
1253 spin_lock(&ctl->tree_lock); in __btrfs_write_out_cache()
1279 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
1332 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
2088 spin_unlock(&ctl->tree_lock); in insert_into_bitmap()
2095 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2103 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2304 spin_lock(&ctl->tree_lock); in __btrfs_add_free_space()
2334 spin_unlock(&ctl->tree_lock); in __btrfs_add_free_space()
2352 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space()
2414 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2429 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2462 spin_lock_init(&ctl->tree_lock); in btrfs_init_free_space_ctl()
2541 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache_locked()
2547 spin_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2549 spin_unlock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2558 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2567 cond_resched_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2570 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2585 spin_lock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2611 spin_unlock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2653 spin_lock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2655 spin_unlock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2761 spin_lock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
2774 spin_unlock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
3030 spin_lock(&ctl->tree_lock); in btrfs_find_space_cluster()
3037 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3074 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3153 spin_lock(&ctl->tree_lock); in trim_no_bitmap()
3156 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3163 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3172 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3181 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3191 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3199 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3238 spin_lock(&ctl->tree_lock); in trim_bitmaps()
3241 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3248 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3257 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3265 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3274 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3386 spin_lock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3419 spin_unlock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3563 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3568 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3582 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3597 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3621 spin_lock(&ctl->tree_lock); in test_check_exists()
3690 spin_unlock(&ctl->tree_lock); in test_check_exists()