Home
last modified time | relevance | path

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

12345

/linux-6.15/fs/btrfs/
H A Ddisk-io.h19 struct btrfs_fs_info;
45 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info);
49 struct btrfs_fs_info *fs_info,
53 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
56 void __cold close_ctree(struct btrfs_fs_info *fs_info);
64 int btrfs_commit_super(struct btrfs_fs_info *fs_info);
67 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info,
69 void btrfs_free_fs_roots(struct btrfs_fs_info *fs_info);
85 void btrfs_free_fs_info(struct btrfs_fs_info *fs_info);
121 struct btrfs_fs_info *fs_info);
[all …]
H A Dsubpage.h87 static inline bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, in btrfs_is_subpage()
108 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
121 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info,
123 void btrfs_folio_set_lock(const struct btrfs_fs_info *fs_info,
125 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info,
149 void btrfs_subpage_set_##name(const struct btrfs_fs_info *fs_info, \
153 bool btrfs_subpage_test_##name(const struct btrfs_fs_info *fs_info, \
155 void btrfs_folio_set_##name(const struct btrfs_fs_info *fs_info, \
157 void btrfs_folio_clear_##name(const struct btrfs_fs_info *fs_info, \
159 bool btrfs_folio_test_##name(const struct btrfs_fs_info *fs_info, \
[all …]
H A Dref-verify.h12 struct btrfs_fs_info;
19 int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info);
20 void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info);
21 int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
23 void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, u64 start,
26 static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) in btrfs_init_ref_verify()
32 static inline int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info) in btrfs_build_ref_tree()
37 static inline void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info) in btrfs_free_ref_cache()
41 static inline int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, in btrfs_ref_tree_mod()
47 static inline void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, in btrfs_free_ref_tree_range()
[all …]
H A Dzoned.h24 struct btrfs_fs_info;
56 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info);
60 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info);
61 int btrfs_check_mountopts_zoned(const struct btrfs_fs_info *info,
78 int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info,
86 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical,
91 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info);
92 bool btrfs_zoned_should_reclaim(const struct btrfs_fs_info *fs_info);
95 int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info);
96 int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info,
[all …]
H A Ddev-replace.h13 struct btrfs_fs_info;
19 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
21 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
23 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
25 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
26 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
27 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
32 void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
33 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
35 static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info) in btrfs_bio_counter_dec()
H A Dvolumes.h29 struct btrfs_fs_info;
115 struct btrfs_fs_info *fs_info;
436 struct btrfs_fs_info *fs_info;
506 struct btrfs_fs_info *fs_info;
715 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
739 int btrfs_rm_device(struct btrfs_fs_info *fs_info,
750 int btrfs_balance(struct btrfs_fs_info *fs_info,
756 int btrfs_pause_balance(struct btrfs_fs_info *fs_info);
758 int btrfs_cancel_balance(struct btrfs_fs_info *fs_info);
761 int btrfs_get_dev_stats(struct btrfs_fs_info *fs_info,
[all …]
H A Dspace-info.h15 struct btrfs_fs_info;
102 struct btrfs_fs_info *fs_info;
240 struct btrfs_fs_info *fs_info = sinfo->fs_info; \
259 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
260 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info,
268 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
269 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
272 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
276 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info,
278 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info,
[all …]
H A Dblock-rsv.h14 struct btrfs_fs_info;
63 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info,
65 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info,
68 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
70 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info,
74 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info,
83 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info,
86 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info);
87 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info);
88 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info);
[all …]
H A Dsysfs.h11 struct btrfs_fs_info;
32 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
37 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
38 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
40 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
45 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
47 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
48 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
49 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
H A Dqgroup.h19 struct btrfs_fs_info;
332 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info);
334 int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
336 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
337 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
350 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info);
351 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info);
354 struct btrfs_fs_info *fs_info,
373 int btrfs_qgroup_check_inherit(struct btrfs_fs_info *fs_info,
379 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info,
[all …]
H A Dblock-group.h19 struct btrfs_fs_info;
117 struct btrfs_fs_info *fs_info;
296 struct btrfs_fs_info *info, u64 bytenr);
298 struct btrfs_fs_info *info, u64 bytenr);
318 struct btrfs_fs_info *fs_info,
322 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info);
325 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info);
327 int btrfs_read_block_groups(struct btrfs_fs_info *info);
352 void btrfs_put_block_group_cache(struct btrfs_fs_info *info);
353 int btrfs_free_block_groups(struct btrfs_fs_info *info);
[all …]
H A Ddelayed-ref.h21 struct btrfs_fs_info;
386 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
391 btrfs_find_delayed_ref_head(const struct btrfs_fs_info *fs_info,
398 void btrfs_delete_ref_head(const struct btrfs_fs_info *fs_info,
403 const struct btrfs_fs_info *fs_info,
409 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
413 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
414 void btrfs_dec_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
415 void btrfs_inc_delayed_refs_rsv_bg_updates(struct btrfs_fs_info *fs_info);
417 int btrfs_delayed_refs_rsv_refill(struct btrfs_fs_info *fs_info,
[all …]
H A Dscrub.h8 struct btrfs_fs_info;
12 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
15 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
16 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
17 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
19 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
H A Ddiscard.h9 struct btrfs_fs_info;
34 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info);
35 void btrfs_discard_resume(struct btrfs_fs_info *fs_info);
36 void btrfs_discard_stop(struct btrfs_fs_info *fs_info);
37 void btrfs_discard_init(struct btrfs_fs_info *fs_info);
38 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
H A Dfs.h425 struct btrfs_fs_info { struct
949 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
981 static inline bool btrfs_is_zoned(const struct btrfs_fs_info *fs_info) in btrfs_is_zoned()
1005 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info,
1007 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info,
1009 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info);
1010 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info);
1011 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info,
1028 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag,
1030 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag,
[all …]
H A Drelocation.h9 struct btrfs_fs_info;
15 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start);
19 int btrfs_recover_relocation(struct btrfs_fs_info *fs_info);
29 int btrfs_should_cancel_balance(const struct btrfs_fs_info *fs_info);
30 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
32 u64 btrfs_get_reloc_bg_bytenr(const struct btrfs_fs_info *fs_info);
H A Dsubpage.c66 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage()
181 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
282 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock()
368 void btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_uptodate()
397 void btrfs_subpage_set_dirty(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_dirty()
438 void btrfs_subpage_clear_dirty(const struct btrfs_fs_info *fs_info, in btrfs_subpage_clear_dirty()
480 void btrfs_subpage_set_ordered(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_ordered()
509 void btrfs_subpage_set_checked(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_checked()
571 void btrfs_folio_set_##name(const struct btrfs_fs_info *fs_info, \
728 void btrfs_folio_set_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_set_lock()
[all …]
H A Dsuper.h11 struct btrfs_fs_info;
13 bool btrfs_check_options(const struct btrfs_fs_info *info,
17 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
19 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info);
21 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb()
H A Dextent-tree.h12 struct btrfs_fs_info;
105 u64 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info,
108 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len);
110 struct btrfs_fs_info *fs_info, u64 bytenr,
150 u64 btrfs_get_extent_owner_root(struct btrfs_fs_info *fs_info,
152 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info,
164 void btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, u64 start, u64 end);
165 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr,
167 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range);
H A Dasync-thread.h14 struct btrfs_fs_info;
32 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
38 struct btrfs_fs_info *fs_info, const char *name,
46 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work);
47 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq);
H A Dfs.c60 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start()
86 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock()
99 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock()
104 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish()
112 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance()
137 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat()
160 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat()
183 void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_compat_ro()
206 void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_compat_ro()
H A Dtree-mod-log.h9 struct btrfs_fs_info;
33 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info,
35 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
43 struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info,
56 u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);
H A Dtransaction.h25 struct btrfs_fs_info;
114 struct btrfs_fs_info *fs_info;
166 struct btrfs_fs_info *fs_info;
284 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
287 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
288 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
294 void btrfs_throttle(struct btrfs_fs_info *fs_info);
297 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
300 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
H A Dspace-info.c275 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
448 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit()
570 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info()
758 static void flush_space(struct btrfs_fs_info *fs_info, in flush_space()
1093 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_metadata_space()
1186 struct btrfs_fs_info *fs_info; in btrfs_preempt_reclaim_metadata_space()
1194 fs_info = container_of(work, struct btrfs_fs_info, in btrfs_preempt_reclaim_metadata_space()
1323 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_data_space()
1966 struct btrfs_fs_info *fs_info = space_info->fs_info; in calc_dynamic_reclaim_threshold()
1999 struct btrfs_fs_info *fs_info = space_info->fs_info; in is_reclaim_urgent()
[all …]
/linux-6.15/fs/btrfs/tests/
H A Dbtrfs-tests.h49 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
50 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info);
53 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length);
56 struct btrfs_fs_info *fs_info);
57 void btrfs_init_dummy_transaction(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info);
58 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);

12345