Lines Matching refs:tree_lock
647 spin_lock(&ctl->tree_lock); in merge_space_tree()
661 spin_unlock(&ctl->tree_lock); in merge_space_tree()
667 spin_unlock(&ctl->tree_lock); in merge_space_tree()
768 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
770 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
786 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
790 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
877 spin_lock(&ctl->tree_lock); in load_free_space_cache()
880 spin_unlock(&ctl->tree_lock); in load_free_space_cache()
1272 spin_lock(&ctl->tree_lock); in __btrfs_write_out_cache()
1297 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
1350 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
2079 spin_unlock(&ctl->tree_lock); in insert_into_bitmap()
2086 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2094 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2294 spin_lock(&ctl->tree_lock); in __btrfs_add_free_space()
2324 spin_unlock(&ctl->tree_lock); in __btrfs_add_free_space()
2342 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space()
2404 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2419 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2451 spin_lock_init(&ctl->tree_lock); in btrfs_init_free_space_ctl()
2531 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache_locked()
2537 spin_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2539 spin_unlock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
2548 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2557 cond_resched_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2560 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
2575 spin_lock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2601 spin_unlock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
2642 spin_lock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2644 spin_unlock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
2750 spin_lock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
2763 spin_unlock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
3003 spin_lock(&ctl->tree_lock); in btrfs_find_space_cluster()
3010 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3047 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3126 spin_lock(&ctl->tree_lock); in trim_no_bitmap()
3129 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3136 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3145 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3154 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3164 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3172 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3211 spin_lock(&ctl->tree_lock); in trim_bitmaps()
3214 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3221 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3230 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3238 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3247 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3349 spin_lock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3382 spin_unlock(&ctl->tree_lock); in btrfs_find_ino_for_alloc()
3525 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3529 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3543 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
3557 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
3581 spin_lock(&ctl->tree_lock); in test_check_exists()
3650 spin_unlock(&ctl->tree_lock); in test_check_exists()