| /Linux-v6.1/fs/btrfs/ |
| D | disk-io.h | 31 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info); 32 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info); 35 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 39 struct btrfs_fs_info *fs_info, 43 void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info); 44 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info); 45 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, 50 void __cold close_ctree(struct btrfs_fs_info *fs_info); 51 int btrfs_validate_super(struct btrfs_fs_info *fs_info, 53 int btrfs_check_features(struct btrfs_fs_info *fs_info, struct super_block *sb); [all …]
|
| D | subpage.h | 77 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page); 80 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, 82 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, 86 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, 90 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, 92 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, 95 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, 97 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, 100 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, 102 bool btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info, [all …]
|
| D | ref-verify.h | 10 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()
|
| D | zoned.h | 36 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info); 40 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info); 41 int btrfs_check_mountopts_zoned(struct btrfs_fs_info *info); 62 bool btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, 70 struct btrfs_device *btrfs_zoned_get_device(struct btrfs_fs_info *fs_info, 75 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical, 80 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info); 81 bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info); 82 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, 84 int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info); [all …]
|
| D | volumes.h | 96 struct btrfs_fs_info *fs_info; 358 struct btrfs_fs_info *fs_info; 499 struct btrfs_fs_info *fs_info; 608 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 611 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 614 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info, 617 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, struct extent_map *map, 620 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 621 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 625 void btrfs_submit_bio(struct btrfs_fs_info *fs_info, struct bio *bio, int mirror_num); [all …]
|
| D | space-info.h | 104 btrfs_space_info_update_##name(struct btrfs_fs_info *fs_info, \ 125 int btrfs_init_space_info(struct btrfs_fs_info *fs_info); 126 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, 130 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, 134 void btrfs_clear_space_info_full(struct btrfs_fs_info *info); 135 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, 138 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info, 142 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, 144 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, 149 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use() [all …]
|
| D | block-rsv.h | 55 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, 57 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, 60 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, 62 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, 66 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, 73 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, 78 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, 81 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info); 82 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info); 83 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info); [all …]
|
| D | block-group.h | 88 struct btrfs_fs_info *fs_info; 257 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 267 struct btrfs_fs_info *info, u64 bytenr); 269 struct btrfs_fs_info *info, u64 bytenr); 274 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, 277 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, 290 struct btrfs_fs_info *fs_info, 294 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 297 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info); 299 int btrfs_read_block_groups(struct btrfs_fs_info *info); [all …]
|
| D | sysfs.h | 22 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info, 28 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info); 29 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info); 31 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info, 36 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info, 38 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info); 39 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info); 40 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
|
| D | dev-replace.h | 10 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);
|
| D | subpage.c | 66 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page) in btrfs_is_subpage() 120 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage() 144 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage() 158 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage() 196 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_inc_eb_refs() 211 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_dec_eb_refs() 227 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert() 243 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_reader() 254 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_reader() 296 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_writer() [all …]
|
| D | discard.h | 8 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);
|
| D | transaction.h | 88 struct btrfs_fs_info *fs_info; 140 struct btrfs_fs_info *fs_info; 215 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid); 219 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info); 220 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info); 225 void btrfs_throttle(struct btrfs_fs_info *fs_info); 228 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, 231 int btrfs_transaction_blocked(struct btrfs_fs_info *info); 232 int btrfs_transaction_in_commit(struct btrfs_fs_info *info); 234 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info);
|
| D | qgroup.h | 249 int btrfs_quota_enable(struct btrfs_fs_info *fs_info); 250 int btrfs_quota_disable(struct btrfs_fs_info *fs_info); 251 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info); 252 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info); 253 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, 263 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info); 264 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info); 279 struct btrfs_fs_info *fs_info, 351 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, 356 int btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid, [all …]
|
| D | space-info.c | 176 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() 194 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size() 222 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 259 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 296 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info() 328 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() 343 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() 379 static inline u64 writable_total_bytes(struct btrfs_fs_info *fs_info, in writable_total_bytes() 395 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 431 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() [all …]
|
| D | block-rsv.c | 103 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() 245 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill() 275 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 326 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes() 351 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 421 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() [all …]
|
| D | sysfs.c | 98 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj); 118 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 130 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 177 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() 193 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() 260 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() 443 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() 454 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() 465 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() 476 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() [all …]
|
| D | async-thread.h | 12 struct btrfs_fs_info; 29 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info, 40 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work); 41 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq);
|
| D | backref.h | 38 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, 46 int iterate_extent_inodes(struct btrfs_fs_info *fs_info, 52 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, 59 struct btrfs_fs_info *fs_info, u64 bytenr, 63 struct btrfs_fs_info *fs_info, u64 bytenr, 107 struct btrfs_fs_info *fs_info; 115 struct btrfs_fs_info *fs_info, gfp_t gfp_flag); 278 struct btrfs_fs_info *fs_info; 289 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info, 378 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
|
| D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() 133 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() 171 void btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_data_space_noquota() 192 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_free_reserved_data_space() 218 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() 240 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 279 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 302 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() 392 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() 419 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
|
| D | disk-io.c | 56 struct btrfs_fs_info *fs_info); 58 static int btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, 61 static int btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, 63 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info); 64 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info); 66 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() 94 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() 169 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 194 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() 261 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer() [all …]
|
| D | extent_io.h | 63 struct btrfs_fs_info; 82 struct btrfs_fs_info *fs_info; 163 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 165 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 167 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 170 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 180 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info, 287 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, 291 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info);
|
| D | tree-mod-log.h | 27 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info, 29 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info, 37 struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info, 51 u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);
|
| D | ctree.h | 626 struct btrfs_fs_info { struct 1078 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() argument 1084 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen() 1089 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() 1099 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves() 1110 static inline u64 btrfs_calc_insert_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size() 1120 static inline u64 btrfs_calc_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_metadata_size() 1129 static inline bool btrfs_is_zoned(const struct btrfs_fs_info *fs_info) in btrfs_is_zoned() 1137 static inline u32 count_max_extents(struct btrfs_fs_info *fs_info, u64 size) in count_max_extents() 1147 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, [all …]
|
| /Linux-v6.1/fs/btrfs/tests/ |
| D | btrfs-tests.h | 41 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);
|