/linux/fs/btrfs/ |
H A D | block-group.h | 107 struct btrfs_block_group *block_group; 116 struct btrfs_block_group { struct 269 static inline u64 btrfs_block_group_end(const struct btrfs_block_group *block_group) in btrfs_block_group_end() argument 274 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() 281 static inline bool btrfs_is_block_group_data_only(const struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only() 292 int btrfs_should_fragment_free_space(const struct btrfs_block_group *block_group); 295 struct btrfs_block_group *btrfs_lookup_first_block_group( 297 struct btrfs_block_group *btrfs_lookup_block_group( 299 struct btrfs_block_group *btrfs_next_block_group( 300 struct btrfs_block_group *cache); [all …]
|
H A D | free-space-cache.h | 89 struct btrfs_block_group *block_group; 114 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, 117 struct btrfs_block_group *block_group, 121 struct btrfs_block_group *block_group); 124 struct btrfs_block_group *block_group, 126 int load_free_space_cache(struct btrfs_block_group *block_group); 128 struct btrfs_block_group *block_group, 131 struct btrfs_block_group *block_group, 134 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group, 136 int btrfs_add_free_space(struct btrfs_block_group *block_group, [all …]
|
H A D | free-space-tree.h | 14 struct btrfs_block_group; 25 void set_free_space_tree_thresholds(struct btrfs_block_group *block_group); 31 struct btrfs_block_group *block_group); 33 struct btrfs_block_group *block_group); 42 struct btrfs_block_group *block_group, 45 struct btrfs_block_group *block_group, 48 struct btrfs_block_group *block_group, 51 struct btrfs_block_group *block_group, 54 struct btrfs_block_group *block_group, 56 int free_space_test_bit(struct btrfs_block_group *block_group,
|
H A D | discard.c | 71 const struct btrfs_block_group *block_group) in get_discard_list() 94 struct btrfs_block_group *block_group) in __add_to_discard_list() 116 struct btrfs_block_group *block_group) in add_to_discard_list() 127 struct btrfs_block_group *block_group) in add_to_discard_unused_list() 155 struct btrfs_block_group *block_group) in remove_from_discard_list() 193 static struct btrfs_block_group *find_next_block_group( in find_next_block_group() 197 struct btrfs_block_group *ret_block_group = NULL, *block_group; in find_next_block_group() 205 struct btrfs_block_group, in find_next_block_group() 237 static struct btrfs_block_group *peek_discard_list( in peek_discard_list() 242 struct btrfs_block_group *block_group; in peek_discard_list() [all …]
|
H A D | zoned.h | 74 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new); 75 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache); 83 bool btrfs_zone_activate(struct btrfs_block_group *block_group); 84 int btrfs_zone_finish(struct btrfs_block_group *block_group); 88 void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg, 90 void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg); 185 struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info() 190 static inline void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) { } in btrfs_calc_zone_unusable() 220 static inline bool btrfs_zone_activate(struct btrfs_block_group *block_group) in btrfs_zone_activate() 225 static inline int btrfs_zone_finish(struct btrfs_block_group *block_group) in btrfs_zone_finish() [all …]
|
H A D | discard.h | 10 struct btrfs_block_group; 18 void btrfs_discard_check_filter(struct btrfs_block_group *block_group, u64 bytes); 22 struct btrfs_block_group *block_group); 24 struct btrfs_block_group *block_group); 30 void btrfs_discard_update_discardable(struct btrfs_block_group *block_group);
|
H A D | block-group.c | 26 int btrfs_should_fragment_free_space(const struct btrfs_block_group *block_group) in btrfs_should_fragment_free_space() 141 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group() 146 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group() 179 const struct btrfs_block_group *new_bg = in btrfs_bg_start_cmp() 180 rb_entry(new, struct btrfs_block_group, cache_node); in btrfs_bg_start_cmp() 181 const struct btrfs_block_group *exist_bg = in btrfs_bg_start_cmp() 182 rb_entry(exist, struct btrfs_block_group, cache_node); in btrfs_bg_start_cmp() 195 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache() 217 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search() 220 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search() [all …]
|
H A D | free-space-tree.c | 21 struct btrfs_block_group *block_group, 25 struct btrfs_block_group *block_group) in btrfs_free_space_root() 38 void set_free_space_tree_thresholds(struct btrfs_block_group *cache) in set_free_space_tree_thresholds() 70 struct btrfs_block_group *block_group, in add_new_free_space_info() 102 struct btrfs_block_group *block_group, in search_free_space_info() 205 struct btrfs_block_group *block_group, in convert_free_space_to_bitmaps() 341 struct btrfs_block_group *block_group, in convert_free_space_to_extents() 472 struct btrfs_block_group *block_group, in update_free_space_extent_count() 509 int free_space_test_bit(struct btrfs_block_group *block_group, in free_space_test_bit() 532 struct btrfs_block_group *block_group, in free_space_set_bits() [all …]
|
H A D | zoned.c | 66 static void wait_eb_writebacks(struct btrfs_block_group *block_group); 67 static int do_zone_finish(struct btrfs_block_group *block_group, bool fully_written); 1206 static int calculate_alloc_pointer(struct btrfs_block_group *cache, in calculate_alloc_pointer() 1371 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() 1389 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() 1432 static int btrfs_load_block_group_raid1(struct btrfs_block_group *bg, in btrfs_load_block_group_raid1() 1480 static int btrfs_load_block_group_raid0(struct btrfs_block_group *bg, in btrfs_load_block_group_raid0() 1512 static int btrfs_load_block_group_raid10(struct btrfs_block_group *bg, in btrfs_load_block_group_raid10() 1547 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info() 1710 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) in btrfs_calc_zone_unusable() [all …]
|
H A D | free-space-cache.c | 132 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, in lookup_free_space_inode() 224 struct btrfs_block_group *block_group, in create_free_space_inode() 245 struct btrfs_block_group *block_group) in btrfs_remove_free_space_inode() 297 struct btrfs_block_group *block_group, in btrfs_truncate_free_space_cache() 692 struct btrfs_block_group *block_group = ctl->block_group; in recalculate_thresholds() 899 static int copy_free_space_cache(struct btrfs_block_group *block_group, in copy_free_space_cache() 940 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache() 1072 struct btrfs_block_group *block_group, in write_cache_extent_entries() 1200 struct btrfs_block_group *block_group, in write_pinned_extent_entries() 1298 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io() [all …]
|
H A D | dev-replace.h | 16 struct btrfs_block_group; 30 struct btrfs_block_group *cache,
|
H A D | sysfs.h | 13 struct btrfs_block_group; 38 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
|
H A D | ordered-data.h | 207 const struct btrfs_block_group *bg); 209 const struct btrfs_block_group *bg);
|
H A D | fs.h | 40 struct btrfs_block_group; 343 struct btrfs_block_group *block_group; 368 struct btrfs_block_group *block_group; 843 struct btrfs_block_group *active_meta_bg; 844 struct btrfs_block_group *active_system_bg;
|
H A D | extent-tree.c | 64 static int block_group_bits(struct btrfs_block_group *cache, u64 bits) in block_group_bits() 2582 struct btrfs_block_group *bg; in first_logical_byte() 2584 bg = rb_entry(leftmost, struct btrfs_block_group, cache_node); in first_logical_byte() 2593 struct btrfs_block_group *cache, in pin_down_extent() 2615 struct btrfs_block_group *cache; in btrfs_pin_extent() 2629 struct btrfs_block_group *cache; in btrfs_pin_extent_for_log_replay() 2657 struct btrfs_block_group *block_group; in __exclude_logged_extent() 2706 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations() 2744 struct btrfs_block_group *cache = NULL; in unpin_extent_range() 2825 struct btrfs_block_group *block_group, *tmp; in btrfs_finish_extent_commit() [all …]
|
H A D | space-info.h | 16 struct btrfs_block_group; 261 struct btrfs_block_group *block_group);
|
H A D | extent_io.h | 31 struct btrfs_block_group; 132 struct btrfs_block_group *zoned_bg;
|
H A D | volumes.h | 27 struct btrfs_block_group; 713 struct btrfs_block_group *btrfs_create_chunk(struct btrfs_trans_handle *trans, 770 struct btrfs_block_group *bg);
|
H A D | scrub.c | 110 struct btrfs_block_group *bg; 1524 static int scrub_find_fill_first_stripe(struct btrfs_block_group *bg, in scrub_find_fill_first_stripe() 1906 static int queue_scrub_stripe(struct scrub_ctx *sctx, struct btrfs_block_group *bg, in queue_scrub_stripe() 1949 struct btrfs_block_group *bg, in scrub_raid56_parity_stripe() 2118 struct btrfs_block_group *bg, in scrub_simple_mirror() 2191 struct btrfs_block_group *bg, in simple_stripe_get_logical() 2218 struct btrfs_block_group *bg, in scrub_simple_stripe() 2251 struct btrfs_block_group *bg, in scrub_stripe() 2416 struct btrfs_block_group *bg, in scrub_chunk() 2459 struct btrfs_block_group *cache) in finish_extent_writes_for_zoned() [all …]
|
H A D | space-info.c | 313 struct btrfs_block_group *block_group) in btrfs_add_bg_to_space_info() 574 struct btrfs_block_group *cache; in btrfs_dump_space_info() 1880 struct btrfs_block_group *block_group; in btrfs_account_ro_block_groups_free_space() 2008 struct btrfs_block_group *bg; in do_reclaim_sweep()
|
/linux/fs/btrfs/tests/ |
H A D | free-space-tree-tests.c | 22 struct btrfs_block_group *cache, in __check_free_space_extents() 109 struct btrfs_block_group *cache, in check_free_space_extents() 152 struct btrfs_block_group *cache, in test_empty_block_group() 166 struct btrfs_block_group *cache, in test_remove_all() 187 struct btrfs_block_group *cache, in test_remove_beginning() 210 struct btrfs_block_group *cache, in test_remove_end() 233 struct btrfs_block_group *cache, in test_remove_middle() 257 struct btrfs_block_group *cache, in test_merge_left() 294 struct btrfs_block_group *cache, in test_merge_right() 332 struct btrfs_block_group *cache, in test_merge_both() [all …]
|
H A D | free-space-tests.c | 20 static int test_extents(struct btrfs_block_group *cache) in test_extents() 90 static int test_bitmaps(struct btrfs_block_group *cache, u32 sectorsize) in test_bitmaps() 158 static int test_bitmaps_and_extents(struct btrfs_block_group *cache, in test_bitmaps_and_extents() 333 check_num_extents_and_bitmaps(const struct btrfs_block_group *cache, in check_num_extents_and_bitmaps() 353 static int check_cache_empty(struct btrfs_block_group *cache) in check_cache_empty() 395 test_steal_space_from_bitmap_to_extent(struct btrfs_block_group *cache, in test_steal_space_from_bitmap_to_extent() 833 static int test_bytes_index(struct btrfs_block_group *cache, u32 sectorsize) in test_bytes_index() 1008 struct btrfs_block_group *cache; in btrfs_test_free_space_cache()
|
H A D | btrfs-tests.h | 52 struct btrfs_block_group * 54 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
|
H A D | btrfs-tests.c | 217 struct btrfs_block_group * 221 struct btrfs_block_group *cache; in btrfs_alloc_dummy_block_group() 247 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache) in btrfs_free_dummy_block_group()
|
/linux/include/trace/events/ |
H A D | btrfs.h | 20 struct btrfs_block_group; 814 const struct btrfs_block_group *block_group, int create), 1305 const struct btrfs_block_group *block_group), 1344 TP_PROTO(const struct btrfs_block_group *block_group, 1383 TP_PROTO(const struct btrfs_block_group *block_group, 1391 TP_PROTO(const struct btrfs_block_group *block_group, 1399 TP_PROTO(const struct btrfs_block_group *block_group, u64 start, 1432 TP_PROTO(const struct btrfs_block_group *block_group), 1449 TP_PROTO(const struct btrfs_block_group *block_group, 2009 TP_PROTO(const struct btrfs_block_group *bg_cache), [all …]
|