Lines Matching refs:tree_lock
645 spin_lock(&ctl->tree_lock); in merge_space_tree()
659 spin_unlock(&ctl->tree_lock); in merge_space_tree()
665 spin_unlock(&ctl->tree_lock); in merge_space_tree()
766 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
768 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
784 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
788 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
875 spin_lock(&ctl->tree_lock); in load_free_space_cache()
878 spin_unlock(&ctl->tree_lock); in load_free_space_cache()
1270 spin_lock(&ctl->tree_lock); in __btrfs_write_out_cache()
1295 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
1348 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
2107 spin_unlock(&ctl->tree_lock); in insert_into_bitmap()
2114 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2122 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2322 spin_lock(&ctl->tree_lock); in __btrfs_add_free_space()
2352 spin_unlock(&ctl->tree_lock); in __btrfs_add_free_space()
2370 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space()
2432 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2447 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2479 spin_lock_init(&ctl->tree_lock); in btrfs_init_free_space_ctl()
2559 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache_locked()
2565 spin_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2567 spin_unlock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2576 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2585 cond_resched_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2588 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2603 spin_lock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2629 spin_unlock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2670 spin_lock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2672 spin_unlock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2778 spin_lock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
2791 spin_unlock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
3047 spin_lock(&ctl->tree_lock); in btrfs_find_space_cluster()
3054 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3091 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3171 spin_lock(&ctl->tree_lock); in trim_no_bitmap()
3174 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3181 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3190 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3199 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3209 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3217 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3256 spin_lock(&ctl->tree_lock); in trim_bitmaps()
3259 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3266 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3275 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3283 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3292 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3403 spin_lock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3436 spin_unlock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3579 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3584 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3598 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3613 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3637 spin_lock(&ctl->tree_lock); in test_check_exists()
3706 spin_unlock(&ctl->tree_lock); in test_check_exists()