/linux/fs/btrfs/ |
H A D | block-group.h | 109 struct btrfs_block_group *block_group; 118 struct btrfs_block_group { struct 276 static inline u64 btrfs_block_group_end(const struct btrfs_block_group *block_group) in btrfs_block_group_end() argument 281 static inline bool btrfs_is_block_group_used(const struct btrfs_block_group *bg) in btrfs_is_block_group_used() 288 static inline bool btrfs_is_block_group_data_only(const struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only() 299 int btrfs_should_fragment_free_space(const struct btrfs_block_group *block_group); 302 struct btrfs_block_group *btrfs_lookup_first_block_group( 304 struct btrfs_block_group *btrfs_lookup_block_group( 306 struct btrfs_block_group *btrfs_next_block_group( 307 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 btrfs_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 bool btrfs_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() 114 struct btrfs_block_group *block_group) in add_to_discard_list() 128 struct btrfs_block_group *block_group) in add_to_discard_unused_list() 156 struct btrfs_block_group *block_group) in remove_from_discard_list() 188 static struct btrfs_block_group *find_next_block_group( in find_next_block_group() 192 struct btrfs_block_group *ret_block_group = NULL, *block_group; in find_next_block_group() 200 struct btrfs_block_group, in find_next_block_group() 232 static struct btrfs_block_group *peek_discard_list( in peek_discard_list() 237 struct btrfs_block_group *block_group; in peek_discard_list() [all …]
|
H A D | discard.h | 11 struct btrfs_block_group; 19 void btrfs_discard_check_filter(struct btrfs_block_group *block_group, u64 bytes); 23 struct btrfs_block_group *block_group); 25 struct btrfs_block_group *block_group); 31 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() 37 static inline bool has_unwritten_metadata(struct btrfs_block_group *block_group) in has_unwritten_metadata() 154 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group() 159 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group() 192 const struct btrfs_block_group *new_bg = in btrfs_bg_start_cmp() 193 rb_entry(new, struct btrfs_block_group, cache_node); in btrfs_bg_start_cmp() 194 const struct btrfs_block_group *exist_bg = in btrfs_bg_start_cmp() 195 rb_entry(exist, struct btrfs_block_group, cache_node); in btrfs_bg_start_cmp() 207 static int btrfs_add_block_group_cache(struct btrfs_block_group *block_group) in btrfs_add_block_group_cache() 230 static struct btrfs_block_group *block_group_cache_tree_search( 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 btrfs_set_free_space_tree_thresholds(struct btrfs_block_group *cache) in btrfs_set_free_space_tree_thresholds() 70 struct btrfs_block_group *block_group, in add_new_free_space_info() 99 struct btrfs_block_group *block_group, in btrfs_search_free_space_info() 202 struct btrfs_block_group *block_group, in btrfs_convert_free_space_to_bitmaps() 346 struct btrfs_block_group *block_group, in btrfs_convert_free_space_to_extents() 485 struct btrfs_block_group *block_group, in update_free_space_extent_count() 520 bool btrfs_free_space_test_bit(struct btrfs_block_group *block_group, in btrfs_free_space_test_bit() 543 struct btrfs_block_group *block_group, in free_space_modify_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() 1385 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single() 1403 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup() 1454 static int btrfs_load_block_group_raid1(struct btrfs_block_group *bg, in btrfs_load_block_group_raid1() 1505 static int btrfs_load_block_group_raid0(struct btrfs_block_group *bg, in btrfs_load_block_group_raid0() 1557 static int btrfs_load_block_group_raid10(struct btrfs_block_group *bg, in btrfs_load_block_group_raid10() 1615 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info() 1781 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) in btrfs_calc_zone_unusable() [all …]
|
H A D | dev-replace.h | 16 struct btrfs_block_group; 30 struct btrfs_block_group *cache,
|
H A D | sysfs.h | 14 struct btrfs_block_group; 39 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
|
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() 294 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() 898 static int copy_free_space_cache(struct btrfs_block_group *block_group, in copy_free_space_cache() 939 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache() 1071 struct btrfs_block_group *block_group, in write_cache_extent_entries() 1198 struct btrfs_block_group *block_group, in write_pinned_extent_entries() 1296 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io() [all …]
|
H A D | ordered-data.h | 20 struct btrfs_block_group; 214 const struct btrfs_block_group *bg); 216 const struct btrfs_block_group *bg);
|
H A D | space-info.h | 16 struct btrfs_block_group; 271 struct btrfs_block_group *block_group);
|
H A D | fs.h | 40 struct btrfs_block_group; 359 struct btrfs_block_group *block_group; 384 struct btrfs_block_group *block_group; 853 struct btrfs_block_group *active_meta_bg; 854 struct btrfs_block_group *active_system_bg;
|
H A D | extent-tree.c | 64 static int block_group_bits(const struct btrfs_block_group *cache, u64 bits) in block_group_bits() 2583 struct btrfs_block_group *bg; in first_logical_byte() 2585 bg = rb_entry(leftmost, struct btrfs_block_group, cache_node); in first_logical_byte() 2594 struct btrfs_block_group *cache, in pin_down_extent() 2616 struct btrfs_block_group *cache; in btrfs_pin_extent() 2630 struct btrfs_block_group *cache; in btrfs_pin_extent_for_log_replay() 2658 struct btrfs_block_group *block_group; in __exclude_logged_extent() 2707 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations() 2745 struct btrfs_block_group *cache = NULL; in unpin_extent_range() 2826 struct btrfs_block_group *block_group, *tmp; in btrfs_finish_extent_commit() [all …]
|
H A D | qgroup.h | 26 struct btrfs_block_group; 446 struct btrfs_block_group *bg,
|
H A D | extent_io.h | 31 struct btrfs_block_group; 126 struct btrfs_block_group *zoned_bg;
|
H A D | scrub.c | 140 struct btrfs_block_group *bg; 1639 static int scrub_find_fill_first_stripe(struct btrfs_block_group *bg, in scrub_find_fill_first_stripe() 2014 static int queue_scrub_stripe(struct scrub_ctx *sctx, struct btrfs_block_group *bg, in queue_scrub_stripe() 2057 struct btrfs_block_group *bg, in scrub_raid56_parity_stripe() 2229 struct btrfs_block_group *bg, in scrub_simple_mirror() 2302 struct btrfs_block_group *bg, in simple_stripe_get_logical() 2329 struct btrfs_block_group *bg, in scrub_simple_stripe() 2362 struct btrfs_block_group *bg, in scrub_stripe() 2527 struct btrfs_block_group *bg, in scrub_chunk() 2570 struct btrfs_block_group *cache) in finish_extent_writes_for_zoned() [all …]
|
H A D | space-info.c | 360 struct btrfs_block_group *block_group) in btrfs_add_bg_to_space_info() 620 struct btrfs_block_group *cache; in btrfs_dump_space_info() 1946 struct btrfs_block_group *block_group; in btrfs_account_ro_block_groups_free_space() 2074 struct btrfs_block_group *bg; in do_reclaim_sweep()
|
H A D | ctree.h | 27 struct btrfs_block_group;
|
/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() 186 struct btrfs_block_group *cache, in test_remove_beginning() 209 struct btrfs_block_group *cache, in test_remove_end() 232 struct btrfs_block_group *cache, in test_remove_middle() 256 struct btrfs_block_group *cache, in test_merge_left() 292 struct btrfs_block_group *cache, in test_merge_right() 329 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 | 205 struct btrfs_block_group * 209 struct btrfs_block_group *cache; in btrfs_alloc_dummy_block_group() 235 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; 808 const struct btrfs_block_group *block_group, int create), 1299 const struct btrfs_block_group *block_group), 1338 TP_PROTO(const struct btrfs_block_group *block_group, 1377 TP_PROTO(const struct btrfs_block_group *block_group, 1385 TP_PROTO(const struct btrfs_block_group *block_group, 1393 TP_PROTO(const struct btrfs_block_group *block_group, u64 start, 1426 TP_PROTO(const struct btrfs_block_group *block_group), 1443 TP_PROTO(const struct btrfs_block_group *block_group, 2002 TP_PROTO(const struct btrfs_block_group *bg_cache), [all …]
|