Lines Matching refs:btrfs_block_group_cache

106 static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache,
115 block_group_cache_done(struct btrfs_block_group_cache *cache) in block_group_cache_done()
122 static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) in block_group_bits()
127 void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group()
132 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group()
147 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache()
151 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache()
158 cache = rb_entry(parent, struct btrfs_block_group_cache, in btrfs_add_block_group_cache()
186 static struct btrfs_block_group_cache *
190 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search()
198 cache = rb_entry(n, struct btrfs_block_group_cache, in block_group_cache_tree_search()
240 struct btrfs_block_group_cache *cache) in free_excluded_extents()
254 struct btrfs_block_group_cache *cache) in exclude_super_stripes()
312 get_caching_control(struct btrfs_block_group_cache *cache) in get_caching_control()
336 struct btrfs_block_group_cache *block_group) in fragment_free_space()
360 static u64 add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space()
400 struct btrfs_block_group_cache *block_group; in caching_thread()
578 static int cache_block_group(struct btrfs_block_group_cache *cache, in cache_block_group()
718 static struct btrfs_block_group_cache *
721 struct btrfs_block_group_cache *cache; in btrfs_lookup_first_block_group()
731 struct btrfs_block_group_cache *btrfs_lookup_block_group( in btrfs_lookup_block_group()
735 struct btrfs_block_group_cache *cache; in btrfs_lookup_block_group()
3261 struct btrfs_block_group_cache *cache) in write_one_cache_group()
3285 static struct btrfs_block_group_cache *
3287 struct btrfs_block_group_cache *cache) in next_block_group()
3306 cache = rb_entry(node, struct btrfs_block_group_cache, in next_block_group()
3315 static int cache_save_setup(struct btrfs_block_group_cache *block_group, in cache_save_setup()
3476 struct btrfs_block_group_cache *cache, *tmp; in btrfs_setup_space_cache()
3514 struct btrfs_block_group_cache *cache; in btrfs_start_dirty_block_groups()
3553 struct btrfs_block_group_cache, in btrfs_start_dirty_block_groups()
3674 struct btrfs_block_group_cache *cache; in btrfs_write_dirty_block_groups()
3694 struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3749 cache = list_first_entry(io, struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3763 struct btrfs_block_group_cache *block_group; in btrfs_extent_readonly()
5851 struct btrfs_block_group_cache *cache = NULL; in update_block_group()
5957 struct btrfs_block_group_cache *cache; in first_logical_byte()
5978 struct btrfs_block_group_cache *cache, in pin_down_extent()
6005 struct btrfs_block_group_cache *cache; in btrfs_pin_extent()
6022 struct btrfs_block_group_cache *cache; in btrfs_pin_extent_for_log_replay()
6048 struct btrfs_block_group_cache *block_group; in __exclude_logged_extent()
6142 static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_update_reserved_bytes()
6186 struct btrfs_block_group_cache *cache; in btrfs_prepare_extent_commit()
6244 struct btrfs_block_group_cache *cache = NULL; in unpin_extent_range()
6330 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_finish_extent_commit()
6773 struct btrfs_block_group_cache *cache; in btrfs_free_tree_block()
6862 wait_block_group_cache_progress(struct btrfs_block_group_cache *cache, in wait_block_group_cache_progress()
6878 wait_block_group_cache_done(struct btrfs_block_group_cache *cache) in wait_block_group_cache_done()
6912 int get_block_group_index(struct btrfs_block_group_cache *cache) in get_block_group_index()
6943 btrfs_lock_block_group(struct btrfs_block_group_cache *cache, in btrfs_lock_block_group()
6951 btrfs_grab_block_group(struct btrfs_block_group_cache *cache, in btrfs_grab_block_group()
6959 static struct btrfs_block_group_cache *
6960 btrfs_lock_cluster(struct btrfs_block_group_cache *block_group, in btrfs_lock_cluster()
6964 struct btrfs_block_group_cache *used_bg; in btrfs_lock_cluster()
6998 btrfs_release_block_group(struct btrfs_block_group_cache *cache, in btrfs_release_block_group()
7025 struct btrfs_block_group_cache *block_group = NULL; in find_free_extent()
7181 struct btrfs_block_group_cache *used_block_group; in find_free_extent()
7501 struct btrfs_block_group_cache *cache; in dump_space_info()
7579 struct btrfs_block_group_cache *cache; in __btrfs_free_reserved_extent()
7799 struct btrfs_block_group_cache *block_group; in btrfs_alloc_logged_file_extent()
9115 static int inc_block_group_ro(struct btrfs_block_group_cache *cache, int force) in inc_block_group_ro()
9161 struct btrfs_block_group_cache *cache) in btrfs_inc_block_group_ro()
9246 struct btrfs_block_group_cache *block_group; in btrfs_account_ro_block_groups_free_space()
9282 struct btrfs_block_group_cache *cache) in btrfs_dec_block_group_ro()
9310 struct btrfs_block_group_cache *block_group; in btrfs_can_relocate()
9474 struct btrfs_block_group_cache *block_group; in btrfs_put_block_group_cache()
9508 struct btrfs_block_group_cache *block_group; in btrfs_free_block_groups()
9525 struct btrfs_block_group_cache, in btrfs_free_block_groups()
9534 block_group = rb_entry(n, struct btrfs_block_group_cache, in btrfs_free_block_groups()
9603 struct btrfs_block_group_cache *cache) in __link_block_group()
9637 static struct btrfs_block_group_cache *
9640 struct btrfs_block_group_cache *cache; in btrfs_create_block_group_cache()
9681 struct btrfs_block_group_cache *cache; in btrfs_read_block_groups()
9858 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_create_pending_block_groups()
9896 struct btrfs_block_group_cache *cache; in btrfs_make_block_group()
10008 struct btrfs_block_group_cache *block_group; in btrfs_remove_block_group()
10345 struct btrfs_block_group_cache *block_group; in btrfs_delete_unused_bgs()
10360 struct btrfs_block_group_cache, in btrfs_delete_unused_bgs()
10640 struct btrfs_block_group_cache *cache = NULL; in btrfs_trim_fs()