Home
last modified time | relevance | path

Searched refs:btrfs_block_group (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v5.15/fs/btrfs/
Dblock-group.h50 struct btrfs_block_group *block_group;
58 struct btrfs_block_group { struct
208 static inline u64 btrfs_block_group_end(struct btrfs_block_group *block_group) in btrfs_block_group_end() argument
214 struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only()
226 struct btrfs_block_group *block_group) in btrfs_should_fragment_free_space()
237 struct btrfs_block_group *btrfs_lookup_first_block_group(
239 struct btrfs_block_group *btrfs_lookup_block_group(
241 struct btrfs_block_group *btrfs_next_block_group(
242 struct btrfs_block_group *cache);
243 void btrfs_get_block_group(struct btrfs_block_group *cache);
[all …]
Dfree-space-cache.h80 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group,
83 struct btrfs_block_group *block_group,
87 struct btrfs_block_group *block_group);
92 struct btrfs_block_group *block_group,
94 int load_free_space_cache(struct btrfs_block_group *block_group);
96 struct btrfs_block_group *block_group,
99 struct btrfs_block_group *block_group,
102 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group,
108 int btrfs_add_free_space(struct btrfs_block_group *block_group,
110 int btrfs_add_free_space_unused(struct btrfs_block_group *block_group,
[all …]
Dfree-space-tree.h19 void set_free_space_tree_thresholds(struct btrfs_block_group *block_group);
24 struct btrfs_block_group *block_group);
26 struct btrfs_block_group *block_group);
35 struct btrfs_block_group *block_group,
38 struct btrfs_block_group *block_group,
41 struct btrfs_block_group *block_group,
44 struct btrfs_block_group *block_group,
47 struct btrfs_block_group *block_group,
49 int free_space_test_bit(struct btrfs_block_group *block_group,
Ddiscard.c72 struct btrfs_block_group *block_group) in get_discard_list()
78 struct btrfs_block_group *block_group) in __add_to_discard_list()
97 struct btrfs_block_group *block_group) in add_to_discard_list()
108 struct btrfs_block_group *block_group) in add_to_discard_unused_list()
130 struct btrfs_block_group *block_group) in remove_from_discard_list()
157 static struct btrfs_block_group *find_next_block_group( in find_next_block_group()
161 struct btrfs_block_group *ret_block_group = NULL, *block_group; in find_next_block_group()
169 struct btrfs_block_group, in find_next_block_group()
201 static struct btrfs_block_group *peek_discard_list( in peek_discard_list()
206 struct btrfs_block_group *block_group; in peek_discard_list()
[all …]
Ddiscard.h10 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);
31 void btrfs_discard_update_discardable(struct btrfs_block_group *block_group);
Dzoned.h50 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new);
51 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache);
61 struct btrfs_block_group **cache_ret);
62 void btrfs_revert_meta_write_pointer(struct btrfs_block_group *cache,
145 struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info()
150 static inline void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) { } in btrfs_calc_zone_unusable()
171 struct btrfs_block_group **cache_ret) in btrfs_check_meta_write_pointer()
177 struct btrfs_block_group *cache, in btrfs_revert_meta_write_pointer()
307 static inline void btrfs_clear_treelog_bg(struct btrfs_block_group *bg) in btrfs_clear_treelog_bg()
Dblock-group.c117 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group()
122 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
155 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
159 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
168 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
195 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
198 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
206 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
238 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
247 struct btrfs_block_group *btrfs_lookup_block_group( in btrfs_lookup_block_group()
[all …]
Dfree-space-tree.c16 struct btrfs_block_group *block_group,
19 void set_free_space_tree_thresholds(struct btrfs_block_group *cache) in set_free_space_tree_thresholds()
51 struct btrfs_block_group *block_group, in add_new_free_space_info()
84 struct btrfs_block_group *block_group, in search_free_space_info()
187 struct btrfs_block_group *block_group, in convert_free_space_to_bitmaps()
325 struct btrfs_block_group *block_group, in convert_free_space_to_extents()
457 struct btrfs_block_group *block_group, in update_free_space_extent_count()
495 int free_space_test_bit(struct btrfs_block_group *block_group, in free_space_test_bit()
517 static void free_space_set_bits(struct btrfs_block_group *block_group, in free_space_set_bits()
585 struct btrfs_block_group *block_group, in modify_free_space_bitmap()
[all …]
Dfree-space-cache.c100 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, in lookup_free_space_inode()
196 struct btrfs_block_group *block_group, in create_free_space_inode()
217 struct btrfs_block_group *block_group) in btrfs_remove_free_space_inode()
289 struct btrfs_block_group *block_group, in btrfs_truncate_free_space_cache()
665 struct btrfs_block_group *block_group = ctl->private; in recalculate_thresholds()
861 static int copy_free_space_cache(struct btrfs_block_group *block_group, in copy_free_space_cache()
896 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache()
1012 struct btrfs_block_group *block_group, in write_cache_extent_entries()
1141 struct btrfs_block_group *block_group, in write_pinned_extent_entries()
1240 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io()
[all …]
Ddev-replace.h22 struct btrfs_block_group *cache,
Dextent-tree.c61 static int block_group_bits(struct btrfs_block_group *cache, u64 bits) in block_group_bits()
75 void btrfs_free_excluded_extents(struct btrfs_block_group *cache) in btrfs_free_excluded_extents()
2503 struct btrfs_block_group *cache; in first_logical_byte()
2524 struct btrfs_block_group *cache, in pin_down_extent()
2549 struct btrfs_block_group *cache; in btrfs_pin_extent()
2566 struct btrfs_block_group *cache; in btrfs_pin_extent_for_log_replay()
2601 struct btrfs_block_group *block_group; in __exclude_logged_extent()
2655 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations()
2693 struct btrfs_block_group *cache = NULL; in unpin_extent_range()
2791 struct btrfs_block_group *block_group, *tmp; in btrfs_finish_extent_commit()
[all …]
Dsysfs.h30 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
Dzoned.c973 static int calculate_alloc_pointer(struct btrfs_block_group *cache, in calculate_alloc_pointer()
1028 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info()
1238 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) in btrfs_calc_zone_unusable()
1298 struct btrfs_block_group *cache; in btrfs_use_zone_append()
1386 struct btrfs_block_group **cache_ret) in btrfs_check_meta_write_pointer()
1388 struct btrfs_block_group *cache; in btrfs_check_meta_write_pointer()
1421 void btrfs_revert_meta_write_pointer(struct btrfs_block_group *cache, in btrfs_revert_meta_write_pointer()
Dvolumes.h453 struct btrfs_block_group *btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
513 struct btrfs_block_group *bg);
Dqgroup.h424 struct btrfs_block_group *bg,
Dvolumes.c3097 struct btrfs_block_group *sys_bg; in btrfs_remove_chunk()
3161 struct btrfs_block_group *block_group; in btrfs_relocate_chunk()
3306 struct btrfs_block_group *cache; in btrfs_may_alloc_data_chunk()
3515 struct btrfs_block_group *cache; in chunk_usage_range_filter()
3548 struct btrfs_block_group *cache; in chunk_usage_filter()
5285 static struct btrfs_block_group *create_chunk(struct btrfs_trans_handle *trans, in create_chunk()
5292 struct btrfs_block_group *block_group; in create_chunk()
5380 struct btrfs_block_group *btrfs_alloc_chunk(struct btrfs_trans_handle *trans, in btrfs_alloc_chunk()
5387 struct btrfs_block_group *block_group; in btrfs_alloc_chunk()
5446 struct btrfs_block_group *bg) in btrfs_chunk_alloc_add_chunk_item()
[all …]
Dtransaction.c144 struct btrfs_block_group *cache; in btrfs_put_transaction()
147 struct btrfs_block_group, in btrfs_put_transaction()
217 struct btrfs_block_group *cache = caching_ctl->block_group; in switch_commit_roots()
2006 struct btrfs_block_group *block_group, *tmp; in btrfs_cleanup_pending_block_groups()
Dscrub.c388 static u64 get_full_stripe_logical(struct btrfs_block_group *cache, u64 bytenr) in get_full_stripe_logical()
421 struct btrfs_block_group *bg_cache; in lock_full_stripe()
468 struct btrfs_block_group *bg_cache; in unlock_full_stripe()
3168 struct btrfs_block_group *cache) in scrub_stripe()
3583 struct btrfs_block_group *cache) in scrub_chunk()
3632 struct btrfs_block_group *cache) in finish_extent_writes_for_zoned()
3666 struct btrfs_block_group *cache; in scrub_enumerate_chunks()
Ddev-replace.c474 struct btrfs_block_group *cache; in mark_block_group_to_copy()
591 struct btrfs_block_group *cache, in btrfs_finish_block_group_to_copy()
Drelocation.c118 struct btrfs_block_group *block_group;
3330 struct btrfs_block_group *block_group, in delete_block_group_cache()
3371 struct btrfs_block_group *block_group, in delete_v1_space_cache()
3835 struct btrfs_block_group *group) in create_reloc_inode()
3967 struct btrfs_block_group *block_group) in describe_relocation()
3992 struct btrfs_block_group *bg; in btrfs_relocate_block_group()
/Linux-v5.15/fs/btrfs/tests/
Dfree-space-tree-tests.c21 struct btrfs_block_group *cache, in __check_free_space_extents()
108 struct btrfs_block_group *cache, in check_free_space_extents()
151 struct btrfs_block_group *cache, in test_empty_block_group()
165 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()
293 struct btrfs_block_group *cache, in test_merge_right()
331 struct btrfs_block_group *cache, in test_merge_both()
[all …]
Dfree-space-tests.c20 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()
830 struct btrfs_block_group *cache; in btrfs_test_free_space_cache()
Dbtrfs-tests.h44 struct btrfs_block_group *
46 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
Dbtrfs-tests.c210 struct btrfs_block_group *
214 struct btrfs_block_group *cache; in btrfs_alloc_dummy_block_group()
240 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache) in btrfs_free_dummy_block_group()
/Linux-v5.15/include/trace/events/
Dbtrfs.h22 struct btrfs_block_group;
736 const struct btrfs_block_group *block_group, int create),
1207 TP_PROTO(const struct btrfs_block_group *block_group, u64 start,
1237 TP_PROTO(const struct btrfs_block_group *block_group, u64 start,
1245 TP_PROTO(const struct btrfs_block_group *block_group, u64 start,
1253 TP_PROTO(const struct btrfs_block_group *block_group, u64 start,
1286 TP_PROTO(const struct btrfs_block_group *block_group),
1303 TP_PROTO(const struct btrfs_block_group *block_group,
1867 TP_PROTO(const struct btrfs_block_group *bg_cache),
1891 TP_PROTO(const struct btrfs_block_group *bg_cache),
[all …]

12