Lines Matching refs:btrfs_block_group_cache
123 void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group()
128 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group()
152 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache()
156 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache()
163 cache = rb_entry(parent, struct btrfs_block_group_cache, in btrfs_add_block_group_cache()
191 static struct btrfs_block_group_cache *block_group_cache_tree_search( in block_group_cache_tree_search()
194 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search()
202 cache = rb_entry(n, struct btrfs_block_group_cache, in block_group_cache_tree_search()
235 struct btrfs_block_group_cache *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
244 struct btrfs_block_group_cache *btrfs_lookup_block_group( in btrfs_lookup_block_group()
250 struct btrfs_block_group_cache *btrfs_next_block_group( in btrfs_next_block_group()
251 struct btrfs_block_group_cache *cache) in btrfs_next_block_group()
269 cache = rb_entry(node, struct btrfs_block_group_cache, in btrfs_next_block_group()
280 struct btrfs_block_group_cache *bg; in btrfs_inc_nocow_writers()
303 struct btrfs_block_group_cache *bg; in btrfs_dec_nocow_writers()
317 void btrfs_wait_nocow_writers(struct btrfs_block_group_cache *bg) in btrfs_wait_nocow_writers()
325 struct btrfs_block_group_cache *bg; in btrfs_dec_block_group_reservations()
334 void btrfs_wait_block_group_reservations(struct btrfs_block_group_cache *bg) in btrfs_wait_block_group_reservations()
360 struct btrfs_block_group_cache *cache) in btrfs_get_caching_control()
395 void btrfs_wait_block_group_cache_progress(struct btrfs_block_group_cache *cache, in btrfs_wait_block_group_cache_progress()
410 int btrfs_wait_block_group_cache_done(struct btrfs_block_group_cache *cache) in btrfs_wait_block_group_cache_done()
427 static void fragment_free_space(struct btrfs_block_group_cache *block_group) in fragment_free_space()
453 u64 add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space()
494 struct btrfs_block_group_cache *block_group = caching_ctl->block_group; in load_extent_tree_free()
631 struct btrfs_block_group_cache *block_group; in caching_thread()
680 int btrfs_cache_block_group(struct btrfs_block_group_cache *cache, in btrfs_cache_block_group()
866 struct btrfs_block_group_cache *block_group; in btrfs_remove_block_group()
1183 static int inc_block_group_ro(struct btrfs_block_group_cache *cache, int force) in inc_block_group_ro()
1250 struct btrfs_block_group_cache *block_group; in btrfs_delete_unused_bgs()
1264 struct btrfs_block_group_cache, in btrfs_delete_unused_bgs()
1413 void btrfs_mark_bg_unused(struct btrfs_block_group_cache *bg) in btrfs_mark_bg_unused()
1521 static int exclude_super_stripes(struct btrfs_block_group_cache *cache) in exclude_super_stripes()
1578 static void link_block_group(struct btrfs_block_group_cache *cache) in link_block_group()
1594 static struct btrfs_block_group_cache *btrfs_create_block_group_cache( in btrfs_create_block_group_cache()
1597 struct btrfs_block_group_cache *cache; in btrfs_create_block_group_cache()
1643 struct btrfs_block_group_cache *bg; in check_chunk_block_group_mappings()
1694 struct btrfs_block_group_cache *cache; in btrfs_read_block_groups()
1864 struct btrfs_block_group_cache *block_group; in btrfs_create_pending_block_groups()
1875 struct btrfs_block_group_cache, in btrfs_create_pending_block_groups()
1905 struct btrfs_block_group_cache *cache; in btrfs_make_block_group()
2025 int btrfs_inc_block_group_ro(struct btrfs_block_group_cache *cache) in btrfs_inc_block_group_ro()
2095 void btrfs_dec_block_group_ro(struct btrfs_block_group_cache *cache) in btrfs_dec_block_group_ro()
2117 struct btrfs_block_group_cache *cache) in write_one_cache_group()
2142 static int cache_save_setup(struct btrfs_block_group_cache *block_group, in cache_save_setup()
2306 struct btrfs_block_group_cache *cache, *tmp; in btrfs_setup_space_cache()
2344 struct btrfs_block_group_cache *cache; in btrfs_start_dirty_block_groups()
2382 struct btrfs_block_group_cache, in btrfs_start_dirty_block_groups()
2507 struct btrfs_block_group_cache *cache; in btrfs_write_dirty_block_groups()
2537 struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
2619 cache = list_first_entry(io, struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
2634 struct btrfs_block_group_cache *cache = NULL; in btrfs_update_block_group()
2749 int btrfs_add_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_add_reserved_bytes()
2785 void btrfs_free_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_free_reserved_bytes()
3050 struct btrfs_block_group_cache *block_group; in btrfs_put_block_group_cache()
3090 struct btrfs_block_group_cache *block_group; in btrfs_free_block_groups()
3107 struct btrfs_block_group_cache, in btrfs_free_block_groups()
3116 block_group = rb_entry(n, struct btrfs_block_group_cache, in btrfs_free_block_groups()