Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
H A Dblock-group.h107 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 Dfree-space-cache.h89 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 Dfree-space-tree.h14 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 Ddiscard.c71 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 Dzoned.h74 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);
184 struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info()
189 static inline void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) { } in btrfs_calc_zone_unusable()
219 static inline bool btrfs_zone_activate(struct btrfs_block_group *block_group) in btrfs_zone_activate()
224 static inline int btrfs_zone_finish(struct btrfs_block_group *block_group) in btrfs_zone_finish()
[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 Dblock-group.c26 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()
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 …]
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_group, in free_space_set_bits()
[all …]
H A Dzoned.c66 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);
1202 static int calculate_alloc_pointer(struct btrfs_block_group *cache, in calculate_alloc_pointer()
1367 static int btrfs_load_block_group_single(struct btrfs_block_group *bg, in btrfs_load_block_group_single()
1385 static int btrfs_load_block_group_dup(struct btrfs_block_group *bg, in btrfs_load_block_group_dup()
1428 static int btrfs_load_block_group_raid1(struct btrfs_block_group *bg, in btrfs_load_block_group_raid1()
1476 static int btrfs_load_block_group_raid0(struct btrfs_block_group *bg, in btrfs_load_block_group_raid0()
1508 static int btrfs_load_block_group_raid10(struct btrfs_block_group *bg, in btrfs_load_block_group_raid10()
1543 int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new) in btrfs_load_block_group_zone_info()
1706 void btrfs_calc_zone_unusable(struct btrfs_block_group *cache) in btrfs_calc_zone_unusable()
[all …]
H A Ddev-replace.h16 struct btrfs_block_group;
30 struct btrfs_block_group *cache,
H A Dfree-space-cache.c131 struct inode *lookup_free_space_inode(struct btrfs_block_group *block_group, in lookup_free_space_inode()
225 struct btrfs_block_group *block_group, in create_free_space_inode()
246 struct btrfs_block_group *block_group) in btrfs_remove_free_space_inode()
298 struct btrfs_block_group *block_group, in btrfs_truncate_free_space_cache()
693 struct btrfs_block_group *block_group = ctl->block_group; in recalculate_thresholds()
900 static int copy_free_space_cache(struct btrfs_block_group *block_group, in copy_free_space_cache()
941 int load_free_space_cache(struct btrfs_block_group *block_group) in load_free_space_cache()
1073 struct btrfs_block_group *block_group, in write_cache_extent_entries()
1202 struct btrfs_block_group *block_group, in write_pinned_extent_entries()
1300 struct btrfs_block_group *block_group, in __btrfs_wait_cache_io()
[all …]
H A Dsysfs.h13 struct btrfs_block_group;
38 void btrfs_sysfs_add_block_group_type(struct btrfs_block_group *cache);
H A Dordered-data.h207 const struct btrfs_block_group *bg);
209 const struct btrfs_block_group *bg);
H A Dfs.h40 struct btrfs_block_group;
341 struct btrfs_block_group *block_group;
366 struct btrfs_block_group *block_group;
837 struct btrfs_block_group *active_meta_bg;
838 struct btrfs_block_group *active_system_bg;
H A Dspace-info.h16 struct btrfs_block_group;
256 struct btrfs_block_group *block_group);
H A Dextent-tree.c64 static int block_group_bits(struct btrfs_block_group *cache, u64 bits) in block_group_bits()
2584 struct btrfs_block_group *bg; in first_logical_byte()
2586 bg = rb_entry(leftmost, struct btrfs_block_group, cache_node); in first_logical_byte()
2595 struct btrfs_block_group *cache, in pin_down_extent()
2620 struct btrfs_block_group *cache; in btrfs_pin_extent()
2634 struct btrfs_block_group *cache; in btrfs_pin_extent_for_log_replay()
2662 struct btrfs_block_group *block_group; in __exclude_logged_extent()
2711 btrfs_inc_block_group_reservations(struct btrfs_block_group *bg) in btrfs_inc_block_group_reservations()
2749 struct btrfs_block_group *cache = NULL; in unpin_extent_range()
2848 struct btrfs_block_group *block_group, *tmp; in btrfs_finish_extent_commit()
[all …]
H A Dextent_io.h31 struct btrfs_block_group;
132 struct btrfs_block_group *zoned_bg;
H A Dvolumes.h27 struct btrfs_block_group;
692 struct btrfs_block_group *btrfs_create_chunk(struct btrfs_trans_handle *trans,
751 struct btrfs_block_group *bg);
H A Dscrub.c110 struct btrfs_block_group *bg;
1524 static int scrub_find_fill_first_stripe(struct btrfs_block_group *bg, in scrub_find_fill_first_stripe()
1893 static int queue_scrub_stripe(struct scrub_ctx *sctx, struct btrfs_block_group *bg, in queue_scrub_stripe()
1936 struct btrfs_block_group *bg, in scrub_raid56_parity_stripe()
2105 struct btrfs_block_group *bg, in scrub_simple_mirror()
2179 struct btrfs_block_group *bg, in simple_stripe_get_logical()
2206 struct btrfs_block_group *bg, in scrub_simple_stripe()
2239 struct btrfs_block_group *bg, in scrub_stripe()
2411 struct btrfs_block_group *bg, in scrub_chunk()
2454 struct btrfs_block_group *cache) in finish_extent_writes_for_zoned()
[all …]
H A Dspace-info.c304 struct btrfs_block_group *block_group) in btrfs_add_bg_to_space_info()
567 struct btrfs_block_group *cache; in btrfs_dump_space_info()
1861 struct btrfs_block_group *block_group; in btrfs_account_ro_block_groups_free_space()
1990 struct btrfs_block_group *bg; in do_reclaim_sweep()
/linux/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 *cache, 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()
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 Dbtrfs-tests.h45 struct btrfs_block_group *
47 void btrfs_free_dummy_block_group(struct btrfs_block_group *cache);
H A 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/include/trace/events/
H A Dbtrfs.h20 struct btrfs_block_group;
813 const struct btrfs_block_group *block_group, int create),
1304 const struct btrfs_block_group *block_group),
1343 TP_PROTO(const struct btrfs_block_group *block_group,
1382 TP_PROTO(const struct btrfs_block_group *block_group,
1390 TP_PROTO(const struct btrfs_block_group *block_group,
1398 TP_PROTO(const struct btrfs_block_group *block_group, u64 start,
1431 TP_PROTO(const struct btrfs_block_group *block_group),
1448 TP_PROTO(const struct btrfs_block_group *block_group,
2005 TP_PROTO(const struct btrfs_block_group *bg_cach
[all...]

12