Lines Matching refs:tree_lock
65 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
842 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
844 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
862 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
866 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
900 spin_lock(&ctl->tree_lock); in __load_free_space_cache()
902 spin_unlock(&ctl->tree_lock); in __load_free_space_cache()
1042 spin_lock(&tmp_ctl.tree_lock); in load_free_space_cache()
1044 spin_unlock(&tmp_ctl.tree_lock); in load_free_space_cache()
1063 spin_lock(&ctl->tree_lock); in load_free_space_cache()
1065 spin_unlock(&ctl->tree_lock); in load_free_space_cache()
1428 spin_lock(&ctl->tree_lock); in __btrfs_write_out_cache()
1453 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
1496 spin_unlock(&ctl->tree_lock); in __btrfs_write_out_cache()
2379 spin_unlock(&ctl->tree_lock); in insert_into_bitmap()
2386 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2396 spin_lock(&ctl->tree_lock); in insert_into_bitmap()
2622 spin_lock(&ctl->tree_lock); in __btrfs_add_free_space()
2655 spin_unlock(&ctl->tree_lock); in __btrfs_add_free_space()
2686 spin_lock(&ctl->tree_lock); in __btrfs_add_free_space_zoned()
2706 spin_unlock(&ctl->tree_lock); in __btrfs_add_free_space_zoned()
2802 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space()
2864 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2882 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space()
2908 spin_lock(&ctl->tree_lock); in btrfs_dump_free_space()
2917 spin_unlock(&ctl->tree_lock); in btrfs_dump_free_space()
2929 spin_lock_init(&ctl->tree_lock); in btrfs_init_free_space_ctl()
3014 spin_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
3023 cond_resched_lock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
3027 spin_unlock(&ctl->tree_lock); in btrfs_remove_free_space_cache()
3044 spin_lock(&ctl->tree_lock); in btrfs_is_free_space_trimmed()
3058 spin_unlock(&ctl->tree_lock); in btrfs_is_free_space_trimmed()
3079 spin_lock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
3115 spin_unlock(&ctl->tree_lock); in btrfs_find_space_for_alloc()
3156 spin_lock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
3158 spin_unlock(&ctl->tree_lock); in btrfs_return_cluster_to_free_space()
3268 spin_lock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
3293 spin_unlock(&ctl->tree_lock); in btrfs_alloc_from_cluster()
3562 spin_lock(&ctl->tree_lock); in btrfs_find_space_cluster()
3569 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3606 spin_unlock(&ctl->tree_lock); in btrfs_find_space_cluster()
3706 spin_lock(&ctl->tree_lock); in trim_no_bitmap()
3735 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3760 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3769 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3800 spin_unlock(&ctl->tree_lock); in trim_no_bitmap()
3824 spin_lock(&ctl->tree_lock); in reset_trimming_bitmap()
3835 spin_unlock(&ctl->tree_lock); in reset_trimming_bitmap()
3871 spin_lock(&ctl->tree_lock); in trim_bitmaps()
3876 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3892 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3918 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3929 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3936 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
3956 spin_unlock(&ctl->tree_lock); in trim_bitmaps()
4160 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
4165 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
4179 spin_lock(&ctl->tree_lock); in test_add_free_space_entry()
4195 spin_unlock(&ctl->tree_lock); in test_add_free_space_entry()
4219 spin_lock(&ctl->tree_lock); in test_check_exists()
4288 spin_unlock(&ctl->tree_lock); in test_check_exists()