Home
last modified time | relevance | path

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

12345

/linux/fs/btrfs/
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,
57 void __cold close_ctree(struct btrfs_fs_info *fs_info);
65 int btrfs_commit_super(struct btrfs_fs_info *fs_info);
68 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info,
86 void btrfs_free_fs_info(struct btrfs_fs_info *fs_info);
125 struct btrfs_fs_info *fs_info);
129 struct btrfs_fs_info *fs_info);
[all …]
A Dsubpage.h12 struct btrfs_fs_info;
86 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
98 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info,
100 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info,
105 void btrfs_folio_end_writer_lock(const struct btrfs_fs_info *fs_info,
107 void btrfs_folio_set_writer_lock(const struct btrfs_fs_info *fs_info,
130 void btrfs_subpage_set_##name(const struct btrfs_fs_info *fs_info, \
136 void btrfs_folio_set_##name(const struct btrfs_fs_info *fs_info, \
138 void btrfs_folio_clear_##name(const struct btrfs_fs_info *fs_info, \
140 bool btrfs_folio_test_##name(const struct btrfs_fs_info *fs_info, \
[all …]
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 …]
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 …]
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()
A Dvolumes.h26 struct btrfs_fs_info;
111 struct btrfs_fs_info *fs_info;
421 struct btrfs_fs_info *fs_info;
482 struct btrfs_fs_info *fs_info;
690 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
714 int btrfs_rm_device(struct btrfs_fs_info *fs_info,
725 int btrfs_balance(struct btrfs_fs_info *fs_info,
731 int btrfs_pause_balance(struct btrfs_fs_info *fs_info);
733 int btrfs_cancel_balance(struct btrfs_fs_info *fs_info);
736 int btrfs_get_dev_stats(struct btrfs_fs_info *fs_info,
[all …]
A Dspace-info.h15 struct btrfs_fs_info;
97 struct btrfs_fs_info *fs_info;
254 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
255 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info,
263 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
264 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
267 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
271 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info,
273 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info,
278 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use()
[all …]
A Dqgroup.h19 struct btrfs_fs_info;
324 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info);
326 int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
328 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
329 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
342 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info);
343 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info);
346 struct btrfs_fs_info *fs_info,
363 int btrfs_qgroup_check_inherit(struct btrfs_fs_info *fs_info,
369 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info,
[all …]
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 …]
A Dsysfs.h10 struct btrfs_fs_info;
31 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
36 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
37 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
39 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
44 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
46 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
47 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
48 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
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 …]
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,
A 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);
A Dfs.h407 struct btrfs_fs_info { struct
926 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
956 static inline bool btrfs_is_zoned(const struct btrfs_fs_info *fs_info) in btrfs_is_zoned()
974 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info,
976 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info,
978 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info);
979 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info);
980 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info,
986 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag,
988 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag,
[all …]
A Ddelayed-ref.h19 struct btrfs_fs_info;
293 static inline u64 btrfs_calc_delayed_ref_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_bytes()
314 static inline u64 btrfs_calc_delayed_ref_csum_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_csum_bytes()
370 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
389 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
393 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
394 void btrfs_dec_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
395 void btrfs_inc_delayed_refs_rsv_bg_updates(struct btrfs_fs_info *fs_info);
396 void btrfs_dec_delayed_refs_rsv_bg_updates(struct btrfs_fs_info *fs_info);
397 int btrfs_delayed_refs_rsv_refill(struct btrfs_fs_info *fs_info,
[all …]
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);
A Dsubpage.c91 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage()
195 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
224 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_reader()
246 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_reader()
499 void btrfs_subpage_set_dirty(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_dirty()
540 void btrfs_subpage_clear_dirty(const struct btrfs_fs_info *fs_info, in btrfs_subpage_clear_dirty()
582 void btrfs_subpage_set_ordered(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_ordered()
611 void btrfs_subpage_set_checked(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_checked()
673 void btrfs_folio_set_##name(const struct btrfs_fs_info *fs_info, \
693 bool btrfs_folio_test_##name(const struct btrfs_fs_info *fs_info, \
[all …]
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()
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);
A Dspace-info.c266 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
303 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info()
439 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit()
563 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info()
751 static void flush_space(struct btrfs_fs_info *fs_info, in flush_space()
1083 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_metadata_space()
1171 struct btrfs_fs_info *fs_info; in btrfs_preempt_reclaim_metadata_space()
1179 fs_info = container_of(work, struct btrfs_fs_info, in btrfs_preempt_reclaim_metadata_space()
1303 struct btrfs_fs_info *fs_info; in btrfs_async_reclaim_data_space()
1947 struct btrfs_fs_info *fs_info = space_info->fs_info; in calc_dynamic_reclaim_threshold()
[all …]
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,
57 u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);
A Dtransaction.h25 struct btrfs_fs_info;
114 struct btrfs_fs_info *fs_info;
166 struct btrfs_fs_info *fs_info;
270 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
273 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
274 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
280 void btrfs_throttle(struct btrfs_fs_info *fs_info);
283 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
286 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
A Dbio.h16 struct btrfs_fs_info;
80 struct btrfs_fs_info *fs_info;
100 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info,
103 struct btrfs_fs_info *fs_info,
112 int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
A Ddefrag.h11 struct btrfs_fs_info;
22 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
23 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
26 static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info) in btrfs_defrag_cancelled()
/linux/fs/btrfs/tests/
A Dbtrfs-tests.h42 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
43 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info);
46 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length);
49 struct btrfs_fs_info *fs_info);
50 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);

Completed in 33 milliseconds

12345