| /Linux-v5.15/fs/btrfs/ |
| D | subpage.h | 56 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, 58 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, 62 int btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, 67 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, 69 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, 72 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, 74 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, 77 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, 79 bool btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info, 81 int btrfs_page_start_writer_lock(const struct btrfs_fs_info *fs_info, [all …]
|
| D | disk-io.h | 41 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info); 42 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info); 45 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 49 struct btrfs_fs_info *fs_info, 53 void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info); 54 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info); 58 void __cold close_ctree(struct btrfs_fs_info *fs_info); 59 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors); 63 int btrfs_commit_super(struct btrfs_fs_info *fs_info); 66 int btrfs_insert_fs_root(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 | volumes.h | 62 struct btrfs_fs_info *fs_info; 278 struct btrfs_fs_info *fs_info; 347 struct btrfs_fs_info *fs_info; 442 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 445 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 448 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, struct extent_map *map, 451 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 452 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 456 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, 467 struct btrfs_device *btrfs_find_device_by_devspec(struct btrfs_fs_info *fs_info, [all …]
|
| D | block-group.h | 59 struct btrfs_fs_info *fs_info; 228 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 238 struct btrfs_fs_info *info, u64 bytenr); 240 struct btrfs_fs_info *info, u64 bytenr); 245 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, 248 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 249 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 262 struct btrfs_fs_info *fs_info, 266 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 269 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_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 | subpage.c | 66 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage() 89 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage() 103 int btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage() 137 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_inc_eb_refs() 152 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_dec_eb_refs() 168 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert() 184 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_reader() 195 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_reader() 229 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_writer() 243 bool btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_and_test_writer() [all …]
|
| D | block-rsv.h | 53 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, 55 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, 58 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, 71 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, 76 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, 79 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info); 80 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info); 81 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info); 85 static inline void btrfs_unuse_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_unuse_block_rsv()
|
| D | space-info.h | 92 btrfs_space_info_update_##name(struct btrfs_fs_info *fs_info, \ 113 int btrfs_init_space_info(struct btrfs_fs_info *fs_info); 114 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, 118 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, 122 void btrfs_clear_space_info_full(struct btrfs_fs_info *info); 123 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, 130 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, 132 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, 137 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use() 146 int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes,
|
| D | dev-replace.h | 11 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info); 13 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, 15 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, 17 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info); 18 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info); 19 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
|
| 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 | zoned.h | 34 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info); 37 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info); 38 int btrfs_check_mountopts_zoned(struct btrfs_fs_info *info); 59 bool btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, 67 struct btrfs_device *btrfs_zoned_get_device(struct btrfs_fs_info *fs_info, 76 static inline int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices() 88 static inline int btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode() 97 static inline int btrfs_check_mountopts_zoned(struct btrfs_fs_info *info) in btrfs_check_mountopts_zoned() 169 static inline bool btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, in btrfs_check_meta_write_pointer() 196 struct btrfs_fs_info *fs_info, in btrfs_zoned_get_device() [all …]
|
| D | qgroup.h | 246 int btrfs_quota_enable(struct btrfs_fs_info *fs_info); 247 int btrfs_quota_disable(struct btrfs_fs_info *fs_info); 248 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info); 249 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info); 250 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, 260 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info); 261 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info); 276 struct btrfs_fs_info *fs_info, 348 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, 353 int btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid, [all …]
|
| D | raid56.h | 33 int raid56_parity_recover(struct btrfs_fs_info *fs_info, struct bio *bio, 36 int raid56_parity_write(struct btrfs_fs_info *fs_info, struct bio *bio, 43 raid56_parity_alloc_scrub_rbio(struct btrfs_fs_info *fs_info, struct bio *bio, 50 raid56_alloc_missing_rbio(struct btrfs_fs_info *fs_info, struct bio *bio, 54 int btrfs_alloc_stripe_hash_table(struct btrfs_fs_info *info); 55 void btrfs_free_stripe_hash_table(struct btrfs_fs_info *info);
|
| D | transaction.h | 88 struct btrfs_fs_info *fs_info; 139 struct btrfs_fs_info *fs_info; 214 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid); 223 void btrfs_throttle(struct btrfs_fs_info *fs_info); 226 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, 229 int btrfs_transaction_blocked(struct btrfs_fs_info *info); 230 int btrfs_transaction_in_commit(struct btrfs_fs_info *info); 232 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info);
|
| D | space-info.c | 175 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() 184 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 217 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 254 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, in btrfs_update_space_info() 280 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() 295 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() 331 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 364 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() 412 static void __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in __btrfs_dump_space_info() 436 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info() [all …]
|
| D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() 132 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() 161 void btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_data_space_noquota() 182 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_free_reserved_data_space() 208 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() 230 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 269 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 291 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() 379 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() 406 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
|
| D | backref.h | 23 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, 31 int iterate_extent_inodes(struct btrfs_fs_info *fs_info, 37 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, 45 struct btrfs_fs_info *fs_info, u64 bytenr, 49 struct btrfs_fs_info *fs_info, u64 bytenr, 91 struct btrfs_fs_info *fs_info; 99 struct btrfs_fs_info *fs_info, gfp_t gfp_flag); 262 struct btrfs_fs_info *fs_info; 273 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info, 362 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
|
| D | sysfs.c | 93 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj); 112 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 124 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 171 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() 187 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() 254 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() 438 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() 449 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() 460 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() 471 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() [all …]
|
| D | extent_io.h | 69 struct btrfs_fs_info; 85 struct btrfs_fs_info *fs_info; 198 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 200 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 202 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 205 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 215 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info, 285 int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start, 320 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, 324 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info);
|
| D | async-thread.h | 12 struct btrfs_fs_info; 32 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info, 44 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work); 45 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct __btrfs_workqueue *wq);
|
| 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 | disk-io.c | 57 struct btrfs_fs_info *fs_info); 59 static int btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, 62 static int btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, 64 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info); 65 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info); 76 struct btrfs_fs_info *info; 101 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() 211 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() 287 static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 314 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() [all …]
|
| D | block-rsv.c | 102 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() 180 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() 189 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() 202 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() 274 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 325 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes() 350 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 415 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() 448 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_release_global_block_rsv() 466 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() [all …]
|
| /Linux-v5.15/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);
|