Lines Matching refs:btrfs_block_group

26 int btrfs_should_fragment_free_space(struct btrfs_block_group *block_group)  in btrfs_should_fragment_free_space()
134 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group()
139 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
182 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
186 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
196 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
221 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
224 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
232 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
261 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
270 struct btrfs_block_group *btrfs_lookup_block_group( in btrfs_lookup_block_group()
276 struct btrfs_block_group *btrfs_next_block_group( in btrfs_next_block_group()
277 struct btrfs_block_group *cache) in btrfs_next_block_group()
295 cache = rb_entry(node, struct btrfs_block_group, cache_node); in btrfs_next_block_group()
318 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, in btrfs_inc_nocow_writers()
321 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers()
355 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg) in btrfs_dec_nocow_writers()
364 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg) in btrfs_wait_nocow_writers()
372 struct btrfs_block_group *bg; in btrfs_dec_block_group_reservations()
381 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg) in btrfs_wait_block_group_reservations()
407 struct btrfs_block_group *cache) in btrfs_get_caching_control()
442 void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache, in btrfs_wait_block_group_cache_progress()
457 static int btrfs_caching_ctl_wait_done(struct btrfs_block_group *cache, in btrfs_caching_ctl_wait_done()
464 static int btrfs_wait_block_group_cache_done(struct btrfs_block_group *cache) in btrfs_wait_block_group_cache_done()
478 static void fragment_free_space(struct btrfs_block_group *block_group) in fragment_free_space()
504 u64 add_new_free_space(struct btrfs_block_group *block_group, u64 start, u64 end) in add_new_free_space()
559 struct btrfs_block_group *block_group, in sample_block_group_extent_item()
648 struct btrfs_block_group *block_group) in load_block_group_size_class()
682 struct btrfs_block_group *block_group = caching_ctl->block_group; in load_extent_tree_free()
812 struct btrfs_block_group *block_group; in caching_thread()
884 int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait) in btrfs_cache_block_group()
992 struct btrfs_block_group *block_group) in remove_block_group_item()
1019 struct btrfs_block_group *block_group; in btrfs_remove_block_group()
1318 static int inc_block_group_ro(struct btrfs_block_group *cache, int force) in inc_block_group_ro()
1391 struct btrfs_block_group *bg) in clean_pinned_extents()
1441 struct btrfs_block_group *block_group; in btrfs_delete_unused_bgs()
1465 struct btrfs_block_group, in btrfs_delete_unused_bgs()
1647 void btrfs_mark_bg_unused(struct btrfs_block_group *bg) in btrfs_mark_bg_unused()
1667 const struct btrfs_block_group *bg1, *bg2; in reclaim_bgs_cmp()
1669 bg1 = list_entry(a, struct btrfs_block_group, bg_list); in reclaim_bgs_cmp()
1670 bg2 = list_entry(b, struct btrfs_block_group, bg_list); in reclaim_bgs_cmp()
1682 static bool should_reclaim_block_group(struct btrfs_block_group *bg, u64 bytes_freed) in should_reclaim_block_group()
1710 struct btrfs_block_group *bg; in btrfs_reclaim_bgs_work()
1751 struct btrfs_block_group, in btrfs_reclaim_bgs_work()
1858 void btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg) in btrfs_mark_bg_to_reclaim()
2045 static int exclude_super_stripes(struct btrfs_block_group *cache) in exclude_super_stripes()
2096 static struct btrfs_block_group *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
2099 struct btrfs_block_group *cache; in btrfs_create_block_group_cache()
2147 struct btrfs_block_group *bg; in check_chunk_block_group_mappings()
2198 struct btrfs_block_group *cache; in read_one_block_group()
2320 struct btrfs_block_group *bg; in fill_dummy_bgs()
2367 struct btrfs_block_group *cache; in btrfs_read_block_groups()
2433 struct btrfs_block_group, in btrfs_read_block_groups()
2481 struct btrfs_block_group *block_group) in insert_block_group_item()
2611 struct btrfs_block_group *block_group; in btrfs_create_pending_block_groups()
2618 struct btrfs_block_group, in btrfs_create_pending_block_groups()
2680 struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans, in btrfs_make_block_group()
2685 struct btrfs_block_group *cache; in btrfs_make_block_group()
2771 int btrfs_inc_block_group_ro(struct btrfs_block_group *cache, in btrfs_inc_block_group_ro()
2874 void btrfs_dec_block_group_ro(struct btrfs_block_group *cache) in btrfs_dec_block_group_ro()
2904 struct btrfs_block_group *cache) in update_block_group_item()
2964 static int cache_save_setup(struct btrfs_block_group *block_group, in cache_save_setup()
3132 struct btrfs_block_group *cache, *tmp; in btrfs_setup_space_cache()
3170 struct btrfs_block_group *cache; in btrfs_start_dirty_block_groups()
3208 cache = list_first_entry(&dirty, struct btrfs_block_group, in btrfs_start_dirty_block_groups()
3336 struct btrfs_block_group *cache; in btrfs_write_dirty_block_groups()
3365 struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3446 cache = list_first_entry(io, struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3461 struct btrfs_block_group *cache = NULL; in btrfs_update_block_group()
3582 int btrfs_add_reserved_bytes(struct btrfs_block_group *cache, in btrfs_add_reserved_bytes()
3636 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, in btrfs_free_reserved_bytes()
3701 static struct btrfs_block_group *do_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags) in do_chunk_alloc()
3703 struct btrfs_block_group *bg; in do_chunk_alloc()
3761 struct btrfs_block_group *sys_bg; in do_chunk_alloc()
3907 struct btrfs_block_group *ret_bg; in btrfs_chunk_alloc()
4083 struct btrfs_block_group *bg; in reserve_chunk_space()
4177 struct btrfs_block_group *block_group; in btrfs_put_block_group_cache()
4206 struct btrfs_block_group *block_group; in btrfs_free_block_groups()
4223 struct btrfs_block_group, in btrfs_free_block_groups()
4231 struct btrfs_block_group, in btrfs_free_block_groups()
4241 struct btrfs_block_group, in btrfs_free_block_groups()
4250 block_group = rb_entry(n, struct btrfs_block_group, in btrfs_free_block_groups()
4317 void btrfs_freeze_block_group(struct btrfs_block_group *cache) in btrfs_freeze_block_group()
4322 void btrfs_unfreeze_block_group(struct btrfs_block_group *block_group) in btrfs_unfreeze_block_group()
4356 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg) in btrfs_inc_block_group_swap_extents()
4370 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount) in btrfs_dec_block_group_swap_extents()
4407 int btrfs_use_block_group_size_class(struct btrfs_block_group *bg, in btrfs_use_block_group_size_class()
4440 bool btrfs_block_group_should_use_size_class(struct btrfs_block_group *bg) in btrfs_block_group_should_use_size_class()