Home
last modified time | relevance | path

Searched refs:btrfs_block_group (Results 1 - 25 of 65) sorted by relevance

123

/kernel/linux/linux-6.6/fs/btrfs/
H A Dblock-group.h92 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()
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 *cach
[all...]
H A Dfree-space-cache.h70 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_grou
[all...]
H A Dfree-space-tree.h19 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,
H A Ddiscard.c71 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_grou in peek_discard_list()
[all...]
H A 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);
30 void btrfs_discard_update_discardable(struct btrfs_block_group *block_group);
H A Dzoned.h60 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_grou
[all...]
H A Dblock-group.c26 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_grou
[all...]
H A Dfree-space-tree.c21 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_grou in free_space_set_bits()
[all...]
H A Ddev-replace.h13 struct btrfs_block_group;
26 struct btrfs_block_group *cache,
H A Dfree-space-cache.c129 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_grou in __btrfs_wait_cache_io()
[all...]
H A Dzoned.c68 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_grou in btrfs_check_meta_write_pointer()
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dblock-group.h50 struct btrfs_block_group *block_group;
58 struct btrfs_block_group { struct
194 static inline u64 btrfs_block_group_end(struct btrfs_block_group *block_group) in btrfs_block_group_end()
200 struct btrfs_block_group *block_group) in btrfs_is_block_group_data_only()
212 struct btrfs_block_group *block_group) in btrfs_should_fragment_free_space()
223 struct btrfs_block_group *btrfs_lookup_first_block_group(
225 struct btrfs_block_group *btrfs_lookup_block_group(
227 struct btrfs_block_group *btrfs_next_block_group(
228 struct btrfs_block_group *cache);
229 void btrfs_get_block_group(struct btrfs_block_group *cach
[all...]
H A Dfree-space-cache.h82 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group,
85 struct btrfs_block_group *block_group,
91 struct btrfs_block_group *block_group,
93 int load_free_space_cache(struct btrfs_block_group *block_group);
95 struct btrfs_block_group *block_group,
98 struct btrfs_block_group *block_group,
112 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group);
117 int btrfs_add_free_space(struct btrfs_block_group *block_group,
119 int btrfs_add_free_space_async_trimmed(struct btrfs_block_group *block_group,
121 int btrfs_remove_free_space(struct btrfs_block_group *block_grou
[all...]
H A 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,
H A 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()
199 static struct btrfs_block_group *peek_discard_list( in peek_discard_list()
204 struct btrfs_block_group *block_grou in peek_discard_list()
[all...]
H A 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,
H A Dblock-group.c123 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group()
128 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group()
161 struct btrfs_block_group *block_group) in btrfs_add_block_group_cache()
165 struct btrfs_block_group *cache; in btrfs_add_block_group_cache()
174 cache = rb_entry(parent, struct btrfs_block_group, cache_node); in btrfs_add_block_group_cache()
201 static struct btrfs_block_group *block_group_cache_tree_search( in block_group_cache_tree_search()
204 struct btrfs_block_group *cache, *ret = NULL; in block_group_cache_tree_search()
212 cache = rb_entry(n, struct btrfs_block_group, cache_node); in block_group_cache_tree_search()
244 struct btrfs_block_group *btrfs_lookup_first_block_group( in btrfs_lookup_first_block_group()
253 struct btrfs_block_group *btrfs_lookup_block_grou
[all...]
H A 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()
186 struct btrfs_block_group *block_group, in convert_free_space_to_bitmaps()
326 struct btrfs_block_group *block_group, in convert_free_space_to_extents()
459 struct btrfs_block_group *block_group, in update_free_space_extent_count()
497 int free_space_test_bit(struct btrfs_block_group *block_group, in free_space_test_bit()
519 static void free_space_set_bits(struct btrfs_block_group *block_group, in free_space_set_bits()
587 struct btrfs_block_group *block_grou in modify_free_space_bitmap()
[all...]
H A Dfree-space-cache.c98 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()
230 struct btrfs_block_group *block_group, in btrfs_truncate_free_space_cache()
845 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache()
944 struct btrfs_block_group *block_group, in write_cache_extent_entries()
1073 struct btrfs_block_group *block_group, in write_pinned_extent_entries()
1172 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io()
1237 struct btrfs_block_group *block_group, in btrfs_wait_cache_io()
1258 struct btrfs_block_group *block_group, in __btrfs_write_out_cache()
1396 struct btrfs_block_group *block_grou in btrfs_write_out_cache()
[all...]
/kernel/linux/linux-5.10/fs/btrfs/tests/
H A 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 *cach in test_merge_both()
[all...]
H A 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()
831 struct btrfs_block_group *cache; in btrfs_test_free_space_cache()
H A Dbtrfs-tests.h44 struct btrfs_block_group *
46 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dfree-space-tree-tests.c22 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 *cach in test_merge_both()
[all...]
H A Dbtrfs-tests.h44 struct btrfs_block_group *
46 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
H A 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()
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()

Completed in 24 milliseconds

123