Lines Matching refs:btrfs_block_group
116 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group()
121 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
154 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
158 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
167 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
194 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
197 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
205 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
237 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
246 struct btrfs_block_group *btrfs_lookup_block_group( in btrfs_lookup_block_group()
252 struct btrfs_block_group *btrfs_next_block_group( in btrfs_next_block_group()
253 struct btrfs_block_group *cache) in btrfs_next_block_group()
271 cache = rb_entry(node, struct btrfs_block_group, cache_node); in btrfs_next_block_group()
281 struct btrfs_block_group *bg; in btrfs_inc_nocow_writers()
304 struct btrfs_block_group *bg; in btrfs_dec_nocow_writers()
318 void btrfs_wait_nocow_writers(struct btrfs_block_group *bg) in btrfs_wait_nocow_writers()
326 struct btrfs_block_group *bg; in btrfs_dec_block_group_reservations()
335 void btrfs_wait_block_group_reservations(struct btrfs_block_group *bg) in btrfs_wait_block_group_reservations()
361 struct btrfs_block_group *cache) in btrfs_get_caching_control()
396 void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache, in btrfs_wait_block_group_cache_progress()
411 int btrfs_wait_block_group_cache_done(struct btrfs_block_group *cache) in btrfs_wait_block_group_cache_done()
428 static void fragment_free_space(struct btrfs_block_group *block_group) in fragment_free_space()
454 u64 add_new_free_space(struct btrfs_block_group *block_group, u64 start, u64 end) in add_new_free_space()
495 struct btrfs_block_group *block_group = caching_ctl->block_group; in load_extent_tree_free()
630 struct btrfs_block_group *block_group; in caching_thread()
686 int btrfs_cache_block_group(struct btrfs_block_group *cache, int load_cache_only) in btrfs_cache_block_group()
874 struct btrfs_block_group *block_group) in remove_block_group_item()
901 struct btrfs_block_group *block_group; in btrfs_remove_block_group()
1223 static int inc_block_group_ro(struct btrfs_block_group *cache, int force) in inc_block_group_ro()
1290 struct btrfs_block_group *bg) in clean_pinned_extents()
1340 struct btrfs_block_group *block_group; in btrfs_delete_unused_bgs()
1354 struct btrfs_block_group, in btrfs_delete_unused_bgs()
1527 void btrfs_mark_bg_unused(struct btrfs_block_group *bg) in btrfs_mark_bg_unused()
1734 static int exclude_super_stripes(struct btrfs_block_group *cache) in exclude_super_stripes()
1776 static void link_block_group(struct btrfs_block_group *cache) in link_block_group()
1786 static struct btrfs_block_group *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
1789 struct btrfs_block_group *cache; in btrfs_create_block_group_cache()
1835 struct btrfs_block_group *bg; in check_chunk_block_group_mappings()
1881 static void read_block_group_item(struct btrfs_block_group *cache, in read_block_group_item()
1902 struct btrfs_block_group *cache; in read_one_block_group()
2003 struct btrfs_block_group *cache; in btrfs_read_block_groups()
2047 struct btrfs_block_group, in btrfs_read_block_groups()
2080 struct btrfs_block_group *block_group) in insert_block_group_item()
2104 struct btrfs_block_group *block_group; in btrfs_create_pending_block_groups()
2114 struct btrfs_block_group, in btrfs_create_pending_block_groups()
2151 struct btrfs_block_group *cache; in btrfs_make_block_group()
2230 int btrfs_inc_block_group_ro(struct btrfs_block_group *cache, in btrfs_inc_block_group_ro()
2307 void btrfs_dec_block_group_ro(struct btrfs_block_group *cache) in btrfs_dec_block_group_ro()
2328 struct btrfs_block_group *cache) in update_block_group_item()
2363 static int cache_save_setup(struct btrfs_block_group *block_group, in cache_save_setup()
2528 struct btrfs_block_group *cache, *tmp; in btrfs_setup_space_cache()
2566 struct btrfs_block_group *cache; in btrfs_start_dirty_block_groups()
2604 cache = list_first_entry(&dirty, struct btrfs_block_group, in btrfs_start_dirty_block_groups()
2732 struct btrfs_block_group *cache; in btrfs_write_dirty_block_groups()
2761 struct btrfs_block_group, in btrfs_write_dirty_block_groups()
2842 cache = list_first_entry(io, struct btrfs_block_group, in btrfs_write_dirty_block_groups()
2857 struct btrfs_block_group *cache = NULL; in btrfs_update_block_group()
2972 int btrfs_add_reserved_bytes(struct btrfs_block_group *cache, in btrfs_add_reserved_bytes()
3015 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, in btrfs_free_reserved_bytes()
3279 struct btrfs_block_group *block_group; in btrfs_put_block_group_cache()
3319 struct btrfs_block_group *block_group; in btrfs_free_block_groups()
3336 struct btrfs_block_group, in btrfs_free_block_groups()
3345 block_group = rb_entry(n, struct btrfs_block_group, in btrfs_free_block_groups()
3399 void btrfs_freeze_block_group(struct btrfs_block_group *cache) in btrfs_freeze_block_group()
3404 void btrfs_unfreeze_block_group(struct btrfs_block_group *block_group) in btrfs_unfreeze_block_group()
3438 bool btrfs_inc_block_group_swap_extents(struct btrfs_block_group *bg) in btrfs_inc_block_group_swap_extents()
3452 void btrfs_dec_block_group_swap_extents(struct btrfs_block_group *bg, int amount) in btrfs_dec_block_group_swap_extents()