Home
last modified time | relevance | path

Searched refs:btrfs_fs_info (Results 1 – 25 of 107) sorted by relevance

12345

/linux-6.6.21/fs/btrfs/
Ddisk-io.h32 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info);
33 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info);
34 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
37 struct btrfs_fs_info *fs_info,
42 void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info);
43 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
44 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
49 void __cold close_ctree(struct btrfs_fs_info *fs_info);
50 int btrfs_validate_super(struct btrfs_fs_info *fs_info,
52 int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount);
[all …]
Dsubpage.h76 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page);
79 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
81 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info,
85 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info,
89 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info,
91 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info,
94 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info,
96 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info,
99 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info,
101 bool btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info,
[all …]
Dref-verify.h10 int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info);
11 void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info);
12 int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
14 void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, u64 start,
17 static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) in btrfs_init_ref_verify()
23 static inline int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info) in btrfs_build_ref_tree()
28 static inline void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info) in btrfs_free_ref_cache()
32 static inline int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, in btrfs_ref_tree_mod()
38 static inline void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, in btrfs_free_ref_tree_range()
43 static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) in btrfs_init_ref_verify()
Ddev-replace.h10 struct btrfs_fs_info;
15 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
17 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
19 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
21 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
22 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
23 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
28 void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
29 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
31 static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info) in btrfs_bio_counter_dec()
Dzoned.h43 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info);
47 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info);
48 int btrfs_check_mountopts_zoned(struct btrfs_fs_info *info);
66 int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info,
74 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical,
79 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info);
80 bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info);
81 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical,
83 int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info);
84 int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info,
[all …]
Dvolumes.h87 struct btrfs_fs_info *fs_info;
360 struct btrfs_fs_info *fs_info;
416 struct btrfs_fs_info *fs_info;
596 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
601 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info,
604 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info,
607 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
608 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info);
620 struct btrfs_device *btrfs_find_device_by_devspec(struct btrfs_fs_info *fs_info,
623 int btrfs_get_dev_args_from_path(struct btrfs_fs_info *fs_info,
[all …]
Dblock-rsv.h56 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info,
58 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info,
61 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
63 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info,
67 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info,
76 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info,
79 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info);
80 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info);
81 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info);
85 int btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info,
[all …]
Dspace-info.h180 btrfs_space_info_update_##name(struct btrfs_fs_info *fs_info, \
201 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
202 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info,
206 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info,
210 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
211 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
214 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
218 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info,
220 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info,
225 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use()
[all …]
Dsysfs.h22 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
27 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
28 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
30 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
35 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
37 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
38 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
39 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
Dblock-group.h102 struct btrfs_fs_info *fs_info;
281 struct btrfs_fs_info *info, u64 bytenr);
283 struct btrfs_fs_info *info, u64 bytenr);
288 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info,
291 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info,
304 struct btrfs_fs_info *fs_info,
308 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info);
311 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info);
313 int btrfs_read_block_groups(struct btrfs_fs_info *info);
337 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags);
[all …]
Dsubpage.c67 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page) in btrfs_is_subpage()
118 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage()
142 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage()
156 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage()
194 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_inc_eb_refs()
209 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_dec_eb_refs()
225 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
241 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_reader()
252 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_reader()
294 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_writer()
[all …]
Ddiscard.h8 struct btrfs_fs_info;
33 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info);
34 void btrfs_discard_resume(struct btrfs_fs_info *fs_info);
35 void btrfs_discard_stop(struct btrfs_fs_info *fs_info);
36 void btrfs_discard_init(struct btrfs_fs_info *fs_info);
37 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
Dqgroup.h261 int btrfs_quota_enable(struct btrfs_fs_info *fs_info);
262 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
263 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
264 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info);
265 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
275 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info);
276 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info);
291 struct btrfs_fs_info *fs_info,
363 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info,
368 int btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid,
[all …]
Dscrub.h6 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
9 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
10 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
11 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
13 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
Dfs.h361 struct btrfs_fs_info { struct
815 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() argument
821 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen()
831 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
842 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size()
852 static inline u64 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_metadata_size()
861 static inline bool btrfs_is_zoned(const struct btrfs_fs_info *fs_info) in btrfs_is_zoned()
869 static inline u32 count_max_extents(struct btrfs_fs_info *fs_info, u64 size) in count_max_extents()
879 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info,
881 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info,
[all …]
Drelocation.h6 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start);
10 int btrfs_recover_relocation(struct btrfs_fs_info *fs_info);
19 int btrfs_should_cancel_balance(struct btrfs_fs_info *fs_info);
20 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
22 u64 btrfs_get_reloc_bg_bytenr(struct btrfs_fs_info *fs_info);
Dasync-thread.h12 struct btrfs_fs_info;
29 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
35 struct btrfs_fs_info *fs_info, const char *name,
43 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work);
44 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq);
Dtransaction.h93 struct btrfs_fs_info *fs_info;
143 struct btrfs_fs_info *fs_info;
246 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
250 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
251 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
256 void btrfs_throttle(struct btrfs_fs_info *fs_info);
259 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
262 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
263 int btrfs_transaction_in_commit(struct btrfs_fs_info *info);
Dspace-info.c179 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full()
197 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
225 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info()
262 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
299 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info()
329 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info()
344 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space()
380 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit()
413 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets()
477 static void dump_global_block_rsv(struct btrfs_fs_info *fs_info) in dump_global_block_rsv()
[all …]
Dbio.h15 struct btrfs_fs_info;
78 struct btrfs_fs_info *fs_info;
95 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info,
98 struct btrfs_fs_info *fs_info,
107 int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
Dblock-rsv.c105 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes()
184 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv()
193 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv()
206 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv()
215 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_add()
245 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill()
273 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release()
324 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv()
401 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv()
424 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv()
[all …]
Dextent_io.h67 struct btrfs_fs_info;
79 struct btrfs_fs_info *fs_info;
200 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
202 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
204 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
207 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info,
217 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info,
304 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info,
308 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info);
Dsysfs.c101 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj);
121 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features()
133 static void set_features(struct btrfs_fs_info *fs_info, in set_features()
180 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show()
196 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store()
263 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible()
453 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show()
464 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show()
475 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show()
486 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show()
[all …]
Ddelalloc-space.c119 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand()
135 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space()
173 void btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_data_space_noquota()
194 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_free_reserved_data_space()
220 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release()
242 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size()
286 struct btrfs_fs_info *fs_info = inode->root->fs_info; in calc_inode_reservations()
311 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata()
399 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata()
428 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
/linux-6.6.21/fs/btrfs/tests/
Dbtrfs-tests.h41 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
42 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info);
45 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length);
48 struct btrfs_fs_info *fs_info);
49 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);

12345