Lines Matching refs:btrfs_block_group

117 void btrfs_get_block_group(struct btrfs_block_group *cache)  in btrfs_get_block_group()
122 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
155 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
159 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
168 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
195 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
198 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
206 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
238 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
247 struct btrfs_block_group *btrfs_lookup_block_group( in btrfs_lookup_block_group()
253 struct btrfs_block_group *btrfs_next_block_group( in btrfs_next_block_group()
254 struct btrfs_block_group *cache) in btrfs_next_block_group()
272 cache = rb_entry(node, struct btrfs_block_group, cache_node); in btrfs_next_block_group()
282 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers()
305 struct btrfs_block_group *bg; in btrfs_dec_nocow_writers()
319 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg) in btrfs_wait_nocow_writers()
327 struct btrfs_block_group *bg; in btrfs_dec_block_group_reservations()
336 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg) in btrfs_wait_block_group_reservations()
362 struct btrfs_block_group *cache) in btrfs_get_caching_control()
397 void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache, in btrfs_wait_block_group_cache_progress()
412 int btrfs_wait_block_group_cache_done(struct btrfs_block_group *cache) in btrfs_wait_block_group_cache_done()
428 static bool space_cache_v1_done(struct btrfs_block_group *cache) in space_cache_v1_done()
439 void btrfs_wait_space_cache_v1_finished(struct btrfs_block_group *cache, in btrfs_wait_space_cache_v1_finished()
446 static void fragment_free_space(struct btrfs_block_group *block_group) in fragment_free_space()
472 u64 add_new_free_space(struct btrfs_block_group *block_group, u64 start, u64 end) in add_new_free_space()
513 struct btrfs_block_group *block_group = caching_ctl->block_group; in load_extent_tree_free()
648 struct btrfs_block_group *block_group; in caching_thread()
721 int btrfs_cache_block_group(struct btrfs_block_group *cache, int load_cache_only) in btrfs_cache_block_group()
835 struct btrfs_block_group *block_group) in remove_block_group_item()
862 struct btrfs_block_group *block_group; in btrfs_remove_block_group()
1156 static int inc_block_group_ro(struct btrfs_block_group *cache, int force) in inc_block_group_ro()
1229 struct btrfs_block_group *bg) in clean_pinned_extents()
1279 struct btrfs_block_group *block_group; in btrfs_delete_unused_bgs()
1300 struct btrfs_block_group, in btrfs_delete_unused_bgs()
1474 void btrfs_mark_bg_unused(struct btrfs_block_group *bg) in btrfs_mark_bg_unused()
1491 struct btrfs_block_group *bg; in btrfs_reclaim_bgs_work()
1516 struct btrfs_block_group, in btrfs_reclaim_bgs_work()
1589 void btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg) in btrfs_mark_bg_to_reclaim()
1804 static int exclude_super_stripes(struct btrfs_block_group *cache) in exclude_super_stripes()
1855 static void link_block_group(struct btrfs_block_group *cache) in link_block_group()
1865 static struct btrfs_block_group *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
1868 struct btrfs_block_group *cache; in btrfs_create_block_group_cache()
1914 struct btrfs_block_group *bg; in check_chunk_block_group_mappings()
1965 struct btrfs_block_group *cache; in read_one_block_group()
2090 struct btrfs_block_group *bg; in fill_dummy_bgs()
2140 struct btrfs_block_group *cache; in btrfs_read_block_groups()
2197 struct btrfs_block_group, in btrfs_read_block_groups()
2245 struct btrfs_block_group *block_group) in insert_block_group_item()
2365 struct btrfs_block_group *block_group; in btrfs_create_pending_block_groups()
2372 struct btrfs_block_group, in btrfs_create_pending_block_groups()
2412 struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans, in btrfs_make_block_group()
2417 struct btrfs_block_group *cache; in btrfs_make_block_group()
2504 int btrfs_inc_block_group_ro(struct btrfs_block_group *cache, in btrfs_inc_block_group_ro()
2585 void btrfs_dec_block_group_ro(struct btrfs_block_group *cache) in btrfs_dec_block_group_ro()
2613 struct btrfs_block_group *cache) in update_block_group_item()
2648 static int cache_save_setup(struct btrfs_block_group *block_group, in cache_save_setup()
2816 struct btrfs_block_group *cache, *tmp; in btrfs_setup_space_cache()
2854 struct btrfs_block_group *cache; in btrfs_start_dirty_block_groups()
2893 cache = list_first_entry(&dirty, struct btrfs_block_group, in btrfs_start_dirty_block_groups()
3022 struct btrfs_block_group *cache; in btrfs_write_dirty_block_groups()
3052 struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3134 cache = list_first_entry(io, struct btrfs_block_group, in btrfs_write_dirty_block_groups()
3149 struct btrfs_block_group *cache = NULL; in btrfs_update_block_group()
3262 int btrfs_add_reserved_bytes(struct btrfs_block_group *cache, in btrfs_add_reserved_bytes()
3305 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, in btrfs_free_reserved_bytes()
3372 struct btrfs_block_group *bg; in do_chunk_alloc()
3442 struct btrfs_block_group *sys_bg; in do_chunk_alloc()
3724 struct btrfs_block_group *bg; in check_system_chunk()
3762 struct btrfs_block_group *block_group; in btrfs_put_block_group_cache()
3802 struct btrfs_block_group *block_group; in btrfs_free_block_groups()
3819 struct btrfs_block_group, in btrfs_free_block_groups()
3829 struct btrfs_block_group, in btrfs_free_block_groups()
3838 block_group = rb_entry(n, struct btrfs_block_group, in btrfs_free_block_groups()
3892 void btrfs_freeze_block_group(struct btrfs_block_group *cache) in btrfs_freeze_block_group()
3897 void btrfs_unfreeze_block_group(struct btrfs_block_group *block_group) in btrfs_unfreeze_block_group()
3931 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg) in btrfs_inc_block_group_swap_extents()
3945 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount) in btrfs_dec_block_group_swap_extents()