/linux/fs/btrfs/ |
H A D | disk-io.h | 19 struct btrfs_fs_info; 44 void btrfs_check_leaked_roots(const struct btrfs_fs_info *fs_info); 45 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info); 46 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 49 struct btrfs_fs_info *fs_info, 52 int btrfs_start_pre_rw_mount(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); 57 int btrfs_validate_super(const struct btrfs_fs_info *fs_info, 59 int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount); [all …]
|
H A D | subpage.h | 12 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 D | ref-verify.h | 12 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 D | volumes.h | 26 struct btrfs_fs_info; 111 struct btrfs_fs_info *fs_info; 432 struct btrfs_fs_info *fs_info; 502 struct btrfs_fs_info *fs_info; 701 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 705 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info, 708 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info, 711 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 712 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 715 void btrfs_mapping_tree_free(struct btrfs_fs_info *fs_info); [all …]
|
H A D | zoned.h | 24 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 D | dev-replace.h | 13 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 D | space-info.h | 15 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, 264 struct btrfs_space_info *btrfs_find_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, [all …]
|
H A D | qgroup.h | 19 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 D | block-rsv.h | 14 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 D | sysfs.h | 10 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 D | block-group.h | 19 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 D | delayed-ref.h | 19 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, 407 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq); 409 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums); 411 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info); [all …]
|
H A D | fs.h | 409 struct btrfs_fs_info { struct 898 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument 903 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation() 908 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed() 913 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed() 918 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() 924 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen() 934 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves() 945 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size() 955 static inline u64 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_metadata_size() [all …]
|
H A D | scrub.h | 8 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 D | discard.h | 8 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 D | subpage.c | 68 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 D | relocation.h | 9 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 D | extent-tree.h | 13 struct btrfs_fs_info; 106 u64 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info, 109 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len); 111 struct btrfs_fs_info *fs_info, u64 bytenr, 151 u64 btrfs_get_extent_owner_root(struct btrfs_fs_info *fs_info, 153 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, 165 void btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, u64 start, u64 end); 166 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr, 168 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range);
|
H A D | super.h | 11 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 D | fs.c | 61 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start() 87 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock() 100 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock() 105 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish() 113 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance() 138 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat() 161 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat() 184 void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_compat_ro() 207 void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_compat_ro()
|
H A D | space-info.c | 189 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() 209 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size() 237 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 275 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 312 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info() 342 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() 357 static u64 calc_effective_data_chunk_size(struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size() 379 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() 448 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 481 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() [all …]
|
H A D | transaction.h | 25 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 D | async-thread.h | 14 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 D | block-rsv.c | 104 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() 181 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() 190 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() 203 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() 212 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_add() 243 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill() 272 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 323 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 403 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() 427 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() [all …]
|
/linux/fs/btrfs/tests/ |
H A D | btrfs-tests.h | 49 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);
|