Home
last modified time | relevance | path

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

1234

/linux/fs/btrfs/
H A Dsubpage.h12 struct btrfs_fs_info;
73 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct address_space *mapping);
75 static inline bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, in btrfs_is_subpage()
82 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
84 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, struct folio *folio);
87 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info,
91 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
92 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
94 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info,
96 void btrfs_folio_set_lock(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 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;
680 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
684 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info,
687 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info,
690 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
691 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info);
694 void btrfs_mapping_tree_free(struct btrfs_fs_info *fs_info);
[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);
93 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical,
95 int btrfs_zone_finish_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 Dspace-info.h15 struct btrfs_fs_info;
97 struct btrfs_fs_info *fs_info;
232 btrfs_space_info_update_##name(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,
259 struct btrfs_space_info *btrfs_find_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,
[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 Dqgroup.h19 struct btrfs_fs_info;
328 enum btrfs_qgroup_mode btrfs_qgroup_mode(const struct btrfs_fs_info *fs_info);
329 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info);
330 bool btrfs_qgroup_full_accounting(const struct btrfs_fs_info *fs_info);
331 int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
333 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
334 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
335 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info);
336 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
344 int btrfs_qgroup_cleanup_dropped_subvolume(struct btrfs_fs_info *fs_info, u64 subvolid);
[all …]
H 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,
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);
303 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info,
306 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info,
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);
[all …]
H A Ddelayed-ref.h19 struct btrfs_fs_info;
307 static inline u64 btrfs_calc_delayed_ref_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_bytes()
328 static inline u64 btrfs_calc_delayed_ref_csum_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_csum_bytes()
384 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
389 btrfs_find_delayed_ref_head(const struct btrfs_fs_info *fs_info,
396 void btrfs_delete_ref_head(const struct btrfs_fs_info *fs_info,
401 const struct btrfs_fs_info *fs_info,
406 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
408 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums);
410 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
[all …]
H A Dfs.h409 struct btrfs_fs_info { struct
890 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument
895 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation()
900 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed()
905 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed()
910 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen()
916 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen()
926 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
937 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size()
947 static inline u64 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_metadata_size()
[all …]
H A Dsubpage.c68 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct address_space *mapping) in btrfs_is_subpage()
91 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage()
115 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_detach_subpage()
128 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage()
164 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_inc_eb_refs()
178 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_dec_eb_refs()
193 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
240 static bool btrfs_subpage_end_and_test_lock(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_and_test_lock()
292 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock()
322 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock_bitmap()
[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.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);
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 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 Dspace-info.c180 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full()
200 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
228 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info()
266 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()
333 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info()
348 static u64 calc_effective_data_chunk_size(struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size()
370 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space()
439 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit()
472 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets()
[all …]
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 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);
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 Dblock-rsv.c104 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes()
183 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv()
192 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv()
205 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv()
214 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()
274 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release()
325 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv()
407 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv()
431 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv()
[all …]
H 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,
H A 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()
468 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show()
479 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show()
490 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show()
501 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show()
[all …]
H A Dbackref.h25 struct btrfs_fs_info;
88 struct btrfs_fs_info *fs_info;
216 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical,
228 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info,
277 struct btrfs_fs_info *fs_info;
284 struct btrfs_backref_iter *btrfs_backref_iter_alloc(struct btrfs_fs_info *fs_info);
412 struct btrfs_fs_info *fs_info;
423 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info,
451 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()

1234