Lines Matching refs:btrfs_block_group_cache
86 block_group_cache_done(struct btrfs_block_group_cache *cache) in block_group_cache_done()
93 static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) in block_group_bits()
98 void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group()
103 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group()
128 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache()
132 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache()
139 cache = rb_entry(parent, struct btrfs_block_group_cache, in btrfs_add_block_group_cache()
167 static struct btrfs_block_group_cache *
171 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search()
179 cache = rb_entry(n, struct btrfs_block_group_cache, in block_group_cache_tree_search()
220 static void free_excluded_extents(struct btrfs_block_group_cache *cache) in free_excluded_extents()
234 static int exclude_super_stripes(struct btrfs_block_group_cache *cache) in exclude_super_stripes()
292 get_caching_control(struct btrfs_block_group_cache *cache) in get_caching_control()
315 static void fragment_free_space(struct btrfs_block_group_cache *block_group) in fragment_free_space()
340 u64 add_new_free_space(struct btrfs_block_group_cache *block_group, in add_new_free_space()
381 struct btrfs_block_group_cache *block_group = caching_ctl->block_group; in load_extent_tree_free()
518 struct btrfs_block_group_cache *block_group; in caching_thread()
567 static int cache_block_group(struct btrfs_block_group_cache *cache, in cache_block_group()
706 static struct btrfs_block_group_cache *
715 struct btrfs_block_group_cache *btrfs_lookup_block_group( in btrfs_lookup_block_group()
3263 struct btrfs_block_group_cache *cache) in write_one_cache_group()
3287 static struct btrfs_block_group_cache *
3289 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()
3480 struct btrfs_block_group_cache *cache, *tmp; in btrfs_setup_space_cache()
3518 struct btrfs_block_group_cache *cache; in btrfs_start_dirty_block_groups()
3557 struct btrfs_block_group_cache, in btrfs_start_dirty_block_groups()
3681 struct btrfs_block_group_cache *cache; in btrfs_write_dirty_block_groups()
3711 struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3795 cache = list_first_entry(io, struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3808 struct btrfs_block_group_cache *block_group; in btrfs_extent_readonly()
3821 struct btrfs_block_group_cache *bg; in btrfs_inc_nocow_writers()
3845 struct btrfs_block_group_cache *bg; in btrfs_dec_nocow_writers()
3859 void btrfs_wait_nocow_writers(struct btrfs_block_group_cache *bg) in btrfs_wait_nocow_writers()
6066 struct btrfs_block_group_cache *cache = NULL; in update_block_group()
6166 struct btrfs_block_group_cache *cache; in first_logical_byte()
6187 struct btrfs_block_group_cache *cache, in pin_down_extent()
6216 struct btrfs_block_group_cache *cache; in btrfs_pin_extent()
6233 struct btrfs_block_group_cache *cache; in btrfs_pin_extent_for_log_replay()
6260 struct btrfs_block_group_cache *block_group; in __exclude_logged_extent()
6335 btrfs_inc_block_group_reservations(struct btrfs_block_group_cache *bg) in btrfs_inc_block_group_reservations()
6343 struct btrfs_block_group_cache *bg; in btrfs_dec_block_group_reservations()
6352 void btrfs_wait_block_group_reservations(struct btrfs_block_group_cache *bg) in btrfs_wait_block_group_reservations()
6389 static int btrfs_add_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_add_reserved_bytes()
6427 static int btrfs_free_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_free_reserved_bytes()
6450 struct btrfs_block_group_cache *cache; in btrfs_prepare_extent_commit()
6509 struct btrfs_block_group_cache *cache = NULL; in unpin_extent_range()
6610 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_finish_extent_commit()
7006 struct btrfs_block_group_cache *cache; in btrfs_free_tree_block()
7111 wait_block_group_cache_progress(struct btrfs_block_group_cache *cache, in wait_block_group_cache_progress()
7127 wait_block_group_cache_done(struct btrfs_block_group_cache *cache) in wait_block_group_cache_done()
7151 btrfs_lock_block_group(struct btrfs_block_group_cache *cache, in btrfs_lock_block_group()
7159 btrfs_grab_block_group(struct btrfs_block_group_cache *cache, in btrfs_grab_block_group()
7167 static struct btrfs_block_group_cache *
7168 btrfs_lock_cluster(struct btrfs_block_group_cache *block_group, in btrfs_lock_cluster()
7172 struct btrfs_block_group_cache *used_bg = NULL; in btrfs_lock_cluster()
7206 btrfs_release_block_group(struct btrfs_block_group_cache *cache, in btrfs_release_block_group()
7233 struct btrfs_block_group_cache *block_group = NULL; in find_free_extent()
7389 struct btrfs_block_group_cache *used_block_group; in find_free_extent()
7711 struct btrfs_block_group_cache *cache; in dump_space_info()
7837 struct btrfs_block_group_cache *cache; in __btrfs_free_reserved_extent()
8079 struct btrfs_block_group_cache *block_group; in btrfs_alloc_logged_file_extent()
9198 static int inc_block_group_ro(struct btrfs_block_group_cache *cache, int force) in inc_block_group_ro()
9242 int btrfs_inc_block_group_ro(struct btrfs_block_group_cache *cache) in btrfs_inc_block_group_ro()
9326 struct btrfs_block_group_cache *block_group; in btrfs_account_ro_block_groups_free_space()
9355 void btrfs_dec_block_group_ro(struct btrfs_block_group_cache *cache) in btrfs_dec_block_group_ro()
9384 struct btrfs_block_group_cache *block_group; in btrfs_can_relocate()
9608 struct btrfs_block_group_cache *block_group; in btrfs_put_block_group_cache()
9647 struct btrfs_block_group_cache *block_group; in btrfs_free_block_groups()
9664 struct btrfs_block_group_cache, in btrfs_free_block_groups()
9673 block_group = rb_entry(n, struct btrfs_block_group_cache, in btrfs_free_block_groups()
9774 static void link_block_group(struct btrfs_block_group_cache *cache) in link_block_group()
9804 static struct btrfs_block_group_cache *
9808 struct btrfs_block_group_cache *cache; in btrfs_create_block_group_cache()
9855 struct btrfs_block_group_cache *bg; in check_chunk_block_group_mappings()
9906 struct btrfs_block_group_cache *cache; in btrfs_read_block_groups()
10077 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_create_pending_block_groups()
10113 struct btrfs_block_group_cache *cache; in btrfs_make_block_group()
10207 struct btrfs_block_group_cache *block_group; in btrfs_remove_block_group()
10542 struct btrfs_block_group_cache *block_group; in btrfs_delete_unused_bgs()
10556 struct btrfs_block_group_cache, in btrfs_delete_unused_bgs()
10836 struct btrfs_block_group_cache *cache = NULL; in btrfs_trim_fs()
10953 void btrfs_mark_bg_unused(struct btrfs_block_group_cache *bg) in btrfs_mark_bg_unused()