/linux-6.6.21/fs/btrfs/ |
D | block-group.h | 92 struct btrfs_block_group *block_group; 101 struct btrfs_block_group { struct 253 static inline u64 btrfs_block_group_end(struct btrfs_block_group *block_group) in btrfs_block_group_end() argument 258 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() 266 struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only() 277 int btrfs_should_fragment_free_space(struct btrfs_block_group *block_group); 280 struct btrfs_block_group *btrfs_lookup_first_block_group( 282 struct btrfs_block_group *btrfs_lookup_block_group( 284 struct btrfs_block_group *btrfs_next_block_group( 285 struct btrfs_block_group *cache); [all …]
|
D | free-space-cache.h | 70 struct btrfs_block_group *block_group; 95 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, 98 struct btrfs_block_group *block_group, 102 struct btrfs_block_group *block_group); 105 struct btrfs_block_group *block_group, 107 int load_free_space_cache(struct btrfs_block_group *block_group); 109 struct btrfs_block_group *block_group, 112 struct btrfs_block_group *block_group, 115 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group, 117 int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, [all …]
|
D | free-space-tree.h | 19 void set_free_space_tree_thresholds(struct btrfs_block_group *block_group); 25 struct btrfs_block_group *block_group); 27 struct btrfs_block_group *block_group); 36 struct btrfs_block_group *block_group, 39 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, 50 int free_space_test_bit(struct btrfs_block_group *block_group,
|
D | discard.c | 71 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 …]
|
D | zoned.h | 60 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new); 61 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache); 71 bool btrfs_zone_activate(struct btrfs_block_group *block_group); 72 int btrfs_zone_finish(struct btrfs_block_group *block_group); 76 void btrfs_schedule_zone_finish_bg(struct btrfs_block_group *bg, 78 void btrfs_clear_data_reloc_bg(struct btrfs_block_group *bg); 176 struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info() 181 static inline void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) { } in btrfs_calc_zone_unusable() 214 static inline bool btrfs_zone_activate(struct btrfs_block_group *block_group) in btrfs_zone_activate() 219 static inline int btrfs_zone_finish(struct btrfs_block_group *block_group) in btrfs_zone_finish() [all …]
|
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);
|
D | block-group.c | 26 int btrfs_should_fragment_free_space(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() 180 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache() 184 struct btrfs_block_group *cache; in btrfs_add_block_group_cache() 194 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache() 219 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search() 222 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search() 230 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search() 259 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group() [all …]
|
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() 103 struct btrfs_block_group *block_group, in search_free_space_info() 206 struct btrfs_block_group *block_group, in convert_free_space_to_bitmaps() 344 struct btrfs_block_group *block_group, in convert_free_space_to_extents() 476 struct btrfs_block_group *block_group, in update_free_space_extent_count() 514 int free_space_test_bit(struct btrfs_block_group *block_group, in free_space_test_bit() 537 struct btrfs_block_group *block_group, in free_space_set_bits() [all …]
|
D | dev-replace.h | 13 struct btrfs_block_group; 26 struct btrfs_block_group *cache,
|
D | free-space-cache.c | 129 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, in lookup_free_space_inode() 223 struct btrfs_block_group *block_group, in create_free_space_inode() 244 struct btrfs_block_group *block_group) in btrfs_remove_free_space_inode() 296 struct btrfs_block_group *block_group, in btrfs_truncate_free_space_cache() 691 struct btrfs_block_group *block_group = ctl->block_group; in recalculate_thresholds() 897 static int copy_free_space_cache(struct btrfs_block_group *block_group, in copy_free_space_cache() 938 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache() 1070 struct btrfs_block_group *block_group, in write_cache_extent_entries() 1199 struct btrfs_block_group *block_group, in write_pinned_extent_entries() 1297 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io() [all …]
|
D | zoned.c | 68 static void wait_eb_writebacks(struct btrfs_block_group *block_group); 69 static int do_zone_finish(struct btrfs_block_group *block_group, bool fully_written); 1214 static int calculate_alloc_pointer(struct btrfs_block_group *cache, in calculate_alloc_pointer() 1285 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info() 1581 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) in btrfs_calc_zone_unusable() 1620 struct btrfs_block_group *cache; in btrfs_use_zone_append() 1755 struct btrfs_block_group **active_bg) in check_bg_is_active() 1758 struct btrfs_block_group *block_group = ctx->zoned_bg; in check_bg_is_active() 1772 struct btrfs_block_group *tgt = *active_bg; in check_bg_is_active() 1823 struct btrfs_block_group *block_group = ctx->zoned_bg; in btrfs_check_meta_write_pointer() [all …]
|
D | extent-tree.c | 67 static int block_group_bits(struct btrfs_block_group *cache, u64 bits) in block_group_bits() 2526 struct btrfs_block_group *bg; in first_logical_byte() 2528 bg = rb_entry(leftmost, struct btrfs_block_group, cache_node); in first_logical_byte() 2537 struct btrfs_block_group *cache, in pin_down_extent() 2562 struct btrfs_block_group *cache; in btrfs_pin_extent() 2579 struct btrfs_block_group *cache; in btrfs_pin_extent_for_log_replay() 2607 struct btrfs_block_group *block_group; in __exclude_logged_extent() 2656 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations() 2694 struct btrfs_block_group *cache = NULL; in unpin_extent_range() 2786 struct btrfs_block_group *block_group, *tmp; in btrfs_finish_extent_commit() [all …]
|
D | fs.h | 295 struct btrfs_block_group *block_group; 320 struct btrfs_block_group *block_group; 773 struct btrfs_block_group *active_meta_bg; 774 struct btrfs_block_group *active_system_bg;
|
D | sysfs.h | 29 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
|
D | scrub.c | 110 struct btrfs_block_group *bg; 1521 static int scrub_find_fill_first_stripe(struct btrfs_block_group *bg, in scrub_find_fill_first_stripe() 1802 static int queue_scrub_stripe(struct scrub_ctx *sctx, struct btrfs_block_group *bg, in queue_scrub_stripe() 1845 struct btrfs_block_group *bg, in scrub_raid56_parity_stripe() 2014 struct btrfs_block_group *bg, in scrub_simple_mirror() 2086 struct btrfs_block_group *bg, in simple_stripe_get_logical() 2113 struct btrfs_block_group *bg, in scrub_simple_stripe() 2146 struct btrfs_block_group *bg, in scrub_stripe() 2315 struct btrfs_block_group *bg, in scrub_chunk() 2364 struct btrfs_block_group *cache) in finish_extent_writes_for_zoned() [all …]
|
D | space-info.h | 203 struct btrfs_block_group *block_group);
|
D | volumes.h | 609 struct btrfs_block_group *btrfs_create_chunk(struct btrfs_trans_handle *trans, 669 struct btrfs_block_group *bg);
|
D | qgroup.h | 443 struct btrfs_block_group *bg,
|
D | extent_io.h | 100 struct btrfs_block_group *zoned_bg;
|
D | space-info.c | 300 struct btrfs_block_group *block_group) in btrfs_add_bg_to_space_info() 508 struct btrfs_block_group *cache; in btrfs_dump_space_info() 1827 struct btrfs_block_group *block_group; in btrfs_account_ro_block_groups_free_space()
|
/linux-6.6.21/fs/btrfs/tests/ |
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 …]
|
D | btrfs-tests.h | 44 struct btrfs_block_group * 46 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
|
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()
|
D | btrfs-tests.c | 213 struct btrfs_block_group * 217 struct btrfs_block_group *cache; in btrfs_alloc_dummy_block_group() 243 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache) in btrfs_free_dummy_block_group()
|
/linux-6.6.21/include/trace/events/ |
D | btrfs.h | 22 struct btrfs_block_group; 830 const struct btrfs_block_group *block_group, int create), 1333 const struct btrfs_block_group *block_group), 1372 TP_PROTO(const struct btrfs_block_group *block_group, 1411 TP_PROTO(const struct btrfs_block_group *block_group, 1419 TP_PROTO(const struct btrfs_block_group *block_group, 1427 TP_PROTO(const struct btrfs_block_group *block_group, u64 start, 1460 TP_PROTO(const struct btrfs_block_group *block_group), 1477 TP_PROTO(const struct btrfs_block_group *block_group, 2037 TP_PROTO(const struct btrfs_block_group *bg_cache), [all …]
|