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()
678 int btrfs_cache_block_group(struct btrfs_block_group *cache, int load_cache_only) in btrfs_cache_block_group()
866 struct btrfs_block_group *block_group) in remove_block_group_item()
893 struct btrfs_block_group *block_group; in btrfs_remove_block_group()
1215 static int inc_block_group_ro(struct btrfs_block_group *cache, int force) in inc_block_group_ro()
1277 struct btrfs_block_group *bg) in clean_pinned_extents()
1327 struct btrfs_block_group *block_group; in btrfs_delete_unused_bgs()
1341 struct btrfs_block_group, in btrfs_delete_unused_bgs()
1516 void btrfs_mark_bg_unused(struct btrfs_block_group *bg) in btrfs_mark_bg_unused()
1723 static int exclude_super_stripes(struct btrfs_block_group *cache) in exclude_super_stripes()
1765 static void link_block_group(struct btrfs_block_group *cache) in link_block_group()
1775 static struct btrfs_block_group *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
1778 struct btrfs_block_group *cache; in btrfs_create_block_group_cache()
1824 struct btrfs_block_group *bg; in check_chunk_block_group_mappings()
1870 static void read_block_group_item(struct btrfs_block_group *cache, in read_block_group_item()
1891 struct btrfs_block_group *cache; in read_one_block_group()
1992 struct btrfs_block_group *cache; in btrfs_read_block_groups()
2036 struct btrfs_block_group, in btrfs_read_block_groups()
2069 struct btrfs_block_group *block_group) in insert_block_group_item()
2093 struct btrfs_block_group *block_group; in btrfs_create_pending_block_groups()
2103 struct btrfs_block_group, in btrfs_create_pending_block_groups()
2140 struct btrfs_block_group *cache; in btrfs_make_block_group()
2219 int btrfs_inc_block_group_ro(struct btrfs_block_group *cache, in btrfs_inc_block_group_ro()
2294 void btrfs_dec_block_group_ro(struct btrfs_block_group *cache) in btrfs_dec_block_group_ro()
2315 struct btrfs_block_group *cache) in update_block_group_item()
2350 static int cache_save_setup(struct btrfs_block_group *block_group, in cache_save_setup()
2515 struct btrfs_block_group *cache, *tmp; in btrfs_setup_space_cache()
2553 struct btrfs_block_group *cache; in btrfs_start_dirty_block_groups()
2590 cache = list_first_entry(&dirty, struct btrfs_block_group, in btrfs_start_dirty_block_groups()
2715 struct btrfs_block_group *cache; in btrfs_write_dirty_block_groups()
2745 struct btrfs_block_group, in btrfs_write_dirty_block_groups()
2827 cache = list_first_entry(io, struct btrfs_block_group, in btrfs_write_dirty_block_groups()
2842 struct btrfs_block_group *cache = NULL; in btrfs_update_block_group()
2959 int btrfs_add_reserved_bytes(struct btrfs_block_group *cache, in btrfs_add_reserved_bytes()
3002 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, in btrfs_free_reserved_bytes()
3265 struct btrfs_block_group *block_group; in btrfs_put_block_group_cache()
3305 struct btrfs_block_group *block_group; in btrfs_free_block_groups()
3322 struct btrfs_block_group, in btrfs_free_block_groups()
3331 block_group = rb_entry(n, struct btrfs_block_group, in btrfs_free_block_groups()
3384 void btrfs_freeze_block_group(struct btrfs_block_group *cache) in btrfs_freeze_block_group()
3389 void btrfs_unfreeze_block_group(struct btrfs_block_group *block_group) in btrfs_unfreeze_block_group()