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()
141 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group()
146 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
180 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
184 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
194 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
219 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
222 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
230 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
259 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
268 struct btrfs_block_group *btrfs_lookup_block_group( in btrfs_lookup_block_group()
274 struct btrfs_block_group *btrfs_next_block_group( in btrfs_next_block_group()
275 struct btrfs_block_group *cache) in btrfs_next_block_group()
293 cache = rb_entry(node, struct btrfs_block_group, cache_node); in btrfs_next_block_group()
316 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, in btrfs_inc_nocow_writers()
319 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers()
353 void btrfs_dec_nocow_writers(struct btrfs_block_group *bg) in btrfs_dec_nocow_writers()
362 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg) in btrfs_wait_nocow_writers()
370 struct btrfs_block_group *bg; in btrfs_dec_block_group_reservations()
379 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg) in btrfs_wait_block_group_reservations()
405 struct btrfs_block_group *cache) in btrfs_get_caching_control()
440 void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache, in btrfs_wait_block_group_cache_progress()
465 static int btrfs_caching_ctl_wait_done(struct btrfs_block_group *cache, in btrfs_caching_ctl_wait_done()
472 static int btrfs_wait_block_group_cache_done(struct btrfs_block_group *cache) in btrfs_wait_block_group_cache_done()
486 static void fragment_free_space(struct btrfs_block_group *block_group) in fragment_free_space()
519 int btrfs_add_new_free_space(struct btrfs_block_group *block_group, u64 start, in btrfs_add_new_free_space()
581 struct btrfs_block_group *block_group, in sample_block_group_extent_item()
670 struct btrfs_block_group *block_group) in load_block_group_size_class()
704 struct btrfs_block_group *block_group = caching_ctl->block_group; in load_extent_tree_free()
838 static inline void btrfs_free_excluded_extents(const struct btrfs_block_group *bg) in btrfs_free_excluded_extents()
846 struct btrfs_block_group *block_group; in caching_thread()
918 int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait) in btrfs_cache_block_group()
1027 struct btrfs_block_group *block_group) in remove_block_group_item()
1054 struct btrfs_block_group *block_group; in btrfs_remove_block_group()
1347 static int inc_block_group_ro(struct btrfs_block_group *cache, int force) in inc_block_group_ro()
1420 struct btrfs_block_group *bg) in clean_pinned_extents()
1471 struct btrfs_block_group *block_group; in btrfs_delete_unused_bgs()
1496 struct btrfs_block_group, in btrfs_delete_unused_bgs()
1722 void btrfs_mark_bg_unused(struct btrfs_block_group *bg) in btrfs_mark_bg_unused()
1746 const struct btrfs_block_group *bg1, *bg2; in reclaim_bgs_cmp()
1748 bg1 = list_entry(a, struct btrfs_block_group, bg_list); in reclaim_bgs_cmp()
1749 bg2 = list_entry(b, struct btrfs_block_group, bg_list); in reclaim_bgs_cmp()
1761 static bool should_reclaim_block_group(struct btrfs_block_group *bg, u64 bytes_freed) in should_reclaim_block_group()
1789 struct btrfs_block_group *bg; in btrfs_reclaim_bgs_work()
1831 struct btrfs_block_group, in btrfs_reclaim_bgs_work()
1967 void btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg) in btrfs_mark_bg_to_reclaim()
2154 static int exclude_super_stripes(struct btrfs_block_group *cache) in exclude_super_stripes()
2208 static struct btrfs_block_group *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
2211 struct btrfs_block_group *cache; in btrfs_create_block_group_cache()
2257 struct btrfs_block_group *bg; in check_chunk_block_group_mappings()
2308 struct btrfs_block_group *cache; in read_one_block_group()
2432 struct btrfs_block_group *bg; in fill_dummy_bgs()
2479 struct btrfs_block_group *cache; in btrfs_read_block_groups()
2545 struct btrfs_block_group, in btrfs_read_block_groups()
2593 struct btrfs_block_group *block_group) in insert_block_group_item()
2723 struct btrfs_block_group *block_group; in btrfs_create_pending_block_groups()
2730 struct btrfs_block_group, in btrfs_create_pending_block_groups()
2793 struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans, in btrfs_make_block_group()
2798 struct btrfs_block_group *cache; in btrfs_make_block_group()
2891 int btrfs_inc_block_group_ro(struct btrfs_block_group *cache, in btrfs_inc_block_group_ro()
3004 void btrfs_dec_block_group_ro(struct btrfs_block_group *cache) in btrfs_dec_block_group_ro()
3034 struct btrfs_block_group *cache) in update_block_group_item()
3102 static int cache_save_setup(struct btrfs_block_group *block_group, in cache_save_setup()
3270 struct btrfs_block_group *cache, *tmp; in btrfs_setup_space_cache()
3308 struct btrfs_block_group *cache; in btrfs_start_dirty_block_groups()
3346 cache = list_first_entry(&dirty, struct btrfs_block_group, in btrfs_start_dirty_block_groups()
3474 struct btrfs_block_group *cache; in btrfs_write_dirty_block_groups()
3503 struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3584 cache = list_first_entry(io, struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3599 struct btrfs_block_group *cache = NULL; in btrfs_update_block_group()
3722 int btrfs_add_reserved_bytes(struct btrfs_block_group *cache, in btrfs_add_reserved_bytes()
3776 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, in btrfs_free_reserved_bytes()
3841 static struct btrfs_block_group *do_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags) in do_chunk_alloc()
3843 struct btrfs_block_group *bg; in do_chunk_alloc()
3901 struct btrfs_block_group *sys_bg; in do_chunk_alloc()
4047 struct btrfs_block_group *ret_bg; in btrfs_chunk_alloc()
4223 struct btrfs_block_group *bg; in reserve_chunk_space()
4317 struct btrfs_block_group *block_group; in btrfs_put_block_group_cache()
4346 struct btrfs_block_group *block_group; in btrfs_free_block_groups()
4374 struct btrfs_block_group, in btrfs_free_block_groups()
4382 struct btrfs_block_group, in btrfs_free_block_groups()
4392 struct btrfs_block_group, in btrfs_free_block_groups()
4401 block_group = rb_entry(n, struct btrfs_block_group, in btrfs_free_block_groups()
4468 void btrfs_freeze_block_group(struct btrfs_block_group *cache) in btrfs_freeze_block_group()
4473 void btrfs_unfreeze_block_group(struct btrfs_block_group *block_group) in btrfs_unfreeze_block_group()
4507 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg) in btrfs_inc_block_group_swap_extents()
4521 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount) in btrfs_dec_block_group_swap_extents()
4558 int btrfs_use_block_group_size_class(struct btrfs_block_group *bg, in btrfs_use_block_group_size_class()
4591 bool btrfs_block_group_should_use_size_class(struct btrfs_block_group *bg) in btrfs_block_group_should_use_size_class()