Lines Matching refs:btrfs_block_group_cache
108 static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache,
117 block_group_cache_done(struct btrfs_block_group_cache *cache) in block_group_cache_done()
124 static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) in block_group_bits()
129 static void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group()
134 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group()
149 struct btrfs_block_group_cache *block_group) in btrfs_add_block_group_cache()
153 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache()
160 cache = rb_entry(parent, struct btrfs_block_group_cache, in btrfs_add_block_group_cache()
188 static struct btrfs_block_group_cache *
192 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search()
200 cache = rb_entry(n, struct btrfs_block_group_cache, in block_group_cache_tree_search()
242 struct btrfs_block_group_cache *cache) in free_excluded_extents()
256 struct btrfs_block_group_cache *cache) in exclude_super_stripes()
314 get_caching_control(struct btrfs_block_group_cache *cache) in get_caching_control()
341 static 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; in caching_thread()
532 static int cache_block_group(struct btrfs_block_group_cache *cache, in cache_block_group()
656 static struct btrfs_block_group_cache *
659 struct btrfs_block_group_cache *cache; in btrfs_lookup_first_block_group()
669 struct btrfs_block_group_cache *btrfs_lookup_block_group( in btrfs_lookup_block_group()
673 struct btrfs_block_group_cache *cache; in btrfs_lookup_block_group()
3163 struct btrfs_block_group_cache *cache) in write_one_cache_group()
3187 static struct btrfs_block_group_cache *
3189 struct btrfs_block_group_cache *cache) in next_block_group()
3208 cache = rb_entry(node, struct btrfs_block_group_cache, in next_block_group()
3217 static int cache_save_setup(struct btrfs_block_group_cache *block_group, in cache_save_setup()
3359 struct btrfs_block_group_cache *cache, *tmp; in btrfs_setup_space_cache()
3397 struct btrfs_block_group_cache *cache; in btrfs_start_dirty_block_groups()
3436 struct btrfs_block_group_cache, in btrfs_start_dirty_block_groups()
3557 struct btrfs_block_group_cache *cache; in btrfs_write_dirty_block_groups()
3577 struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3632 cache = list_first_entry(io, struct btrfs_block_group_cache, in btrfs_write_dirty_block_groups()
3646 struct btrfs_block_group_cache *block_group; in btrfs_extent_readonly()
5619 struct btrfs_block_group_cache *cache = NULL; in update_block_group()
5722 struct btrfs_block_group_cache *cache; in first_logical_byte()
5743 struct btrfs_block_group_cache *cache, in pin_down_extent()
5770 struct btrfs_block_group_cache *cache; in btrfs_pin_extent()
5787 struct btrfs_block_group_cache *cache; in btrfs_pin_extent_for_log_replay()
5813 struct btrfs_block_group_cache *block_group; in __exclude_logged_extent()
5907 static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache, in btrfs_update_reserved_bytes()
5951 struct btrfs_block_group_cache *cache; in btrfs_prepare_extent_commit()
5981 struct btrfs_block_group_cache *cache = NULL; in unpin_extent_range()
6475 struct btrfs_block_group_cache *cache; in btrfs_free_tree_block()
6564 wait_block_group_cache_progress(struct btrfs_block_group_cache *cache, in wait_block_group_cache_progress()
6580 wait_block_group_cache_done(struct btrfs_block_group_cache *cache) in wait_block_group_cache_done()
6614 int get_block_group_index(struct btrfs_block_group_cache *cache) in get_block_group_index()
6645 btrfs_lock_block_group(struct btrfs_block_group_cache *cache, in btrfs_lock_block_group()
6653 btrfs_grab_block_group(struct btrfs_block_group_cache *cache, in btrfs_grab_block_group()
6661 static struct btrfs_block_group_cache *
6662 btrfs_lock_cluster(struct btrfs_block_group_cache *block_group, in btrfs_lock_cluster()
6666 struct btrfs_block_group_cache *used_bg; in btrfs_lock_cluster()
6700 btrfs_release_block_group(struct btrfs_block_group_cache *cache, in btrfs_release_block_group()
6727 struct btrfs_block_group_cache *block_group = NULL; in find_free_extent()
6867 struct btrfs_block_group_cache *used_block_group; in find_free_extent()
7135 struct btrfs_block_group_cache *cache; in dump_space_info()
7213 struct btrfs_block_group_cache *cache; in __btrfs_free_reserved_extent()
7447 struct btrfs_block_group_cache *block_group; in btrfs_alloc_logged_file_extent()
8760 static int set_block_group_ro(struct btrfs_block_group_cache *cache, int force) in set_block_group_ro()
8806 struct btrfs_block_group_cache *cache) in btrfs_set_block_group_ro()
8893 struct btrfs_block_group_cache *block_group; in btrfs_account_ro_block_groups_free_space()
8929 struct btrfs_block_group_cache *cache) in btrfs_set_block_group_rw()
8955 struct btrfs_block_group_cache *block_group; in btrfs_can_relocate()
9119 struct btrfs_block_group_cache *block_group; in btrfs_put_block_group_cache()
9153 struct btrfs_block_group_cache *block_group; in btrfs_free_block_groups()
9170 struct btrfs_block_group_cache, in btrfs_free_block_groups()
9179 block_group = rb_entry(n, struct btrfs_block_group_cache, in btrfs_free_block_groups()
9248 struct btrfs_block_group_cache *cache) in __link_block_group()
9282 static struct btrfs_block_group_cache *
9285 struct btrfs_block_group_cache *cache; in btrfs_create_block_group_cache()
9326 struct btrfs_block_group_cache *cache; in btrfs_read_block_groups()
9503 struct btrfs_block_group_cache *block_group, *tmp; in btrfs_create_pending_block_groups()
9538 struct btrfs_block_group_cache *cache; in btrfs_make_block_group()
9625 struct btrfs_block_group_cache *block_group; in btrfs_remove_block_group()
9916 struct btrfs_block_group_cache *block_group; in btrfs_delete_unused_bgs()
9930 struct btrfs_block_group_cache, in btrfs_delete_unused_bgs()
10086 struct btrfs_block_group_cache *cache = NULL; in btrfs_trim_fs()