/kernel/linux/linux-5.10/fs/btrfs/ |
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, 48 void readahead_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr); 50 struct btrfs_fs_info *fs_info, 56 void __cold close_ctree(struct btrfs_fs_info *fs_info); 57 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors); 61 int btrfs_commit_super(struct btrfs_fs_info *fs_info); 64 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, 66 void btrfs_free_fs_roots(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 | 60 struct btrfs_fs_info *fs_info; 260 struct btrfs_fs_info *fs_info; 326 struct btrfs_fs_info *fs_info; 420 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 423 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 426 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 428 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 429 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 432 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, 443 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; 214 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 224 struct btrfs_fs_info *info, u64 bytenr); 226 struct btrfs_fs_info *info, u64 bytenr); 231 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, 234 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 235 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 248 struct btrfs_fs_info *fs_info, 252 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 254 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 | 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 | 98 btrfs_space_info_update_##name(struct btrfs_fs_info *fs_info, \ 119 int btrfs_init_space_info(struct btrfs_fs_info *fs_info); 120 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, 124 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, 128 void btrfs_clear_space_info_full(struct btrfs_fs_info *info); 129 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, 136 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, 138 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, 143 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use() 152 int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes, [all …]
|
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; 35 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info); 36 void btrfs_discard_resume(struct btrfs_fs_info *fs_info); 37 void btrfs_discard_stop(struct btrfs_fs_info *fs_info); 38 void btrfs_discard_init(struct btrfs_fs_info *fs_info); 39 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
|
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, 301 int btrfs_qgroup_trace_extent_post(struct btrfs_fs_info *fs_info, 348 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, [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 | 87 struct btrfs_fs_info *fs_info; 138 struct btrfs_fs_info *fs_info; 213 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 | 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() 206 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() 228 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 267 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 289 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() 376 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() 403 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
|
D | space-info.c | 173 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() 182 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 221 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 258 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, in btrfs_update_space_info() 283 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() 298 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() 334 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 367 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() 415 static void __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in __btrfs_dump_space_info() 439 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info() [all …]
|
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, 44 struct btrfs_fs_info *fs_info, u64 bytenr, 48 struct btrfs_fs_info *fs_info, u64 bytenr, 89 struct btrfs_fs_info *fs_info; 97 struct btrfs_fs_info *fs_info, gfp_t gfp_flag); 260 struct btrfs_fs_info *fs_info; 271 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info, 360 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
|
D | sysfs.c | 73 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj); 92 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 104 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 151 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() 167 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() 234 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() 361 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() 372 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() 383 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() 394 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; 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 | extent_io.h | 83 struct btrfs_fs_info *fs_info; 201 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 203 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 205 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 208 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 280 struct btrfs_fs_info; 283 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 | 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); 75 struct btrfs_fs_info *info; 100 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() 304 static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 331 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() [all …]
|
D | ctree.h | 498 void btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info); 532 bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr); 585 struct btrfs_fs_info { struct 977 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument 1063 struct btrfs_fs_info *fs_info; 1243 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_LEAF_DATA_SIZE() 1251 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_ITEM_SIZE() 1256 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_fs_info *info) in BTRFS_NODEPTRS_PER_BLOCK() 1263 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_INLINE_DATA_SIZE() 1269 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_XATTR_SIZE() [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() 440 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_release_global_block_rsv() 458 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() [all …]
|
D | transaction.c | 156 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 257 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 272 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 403 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() 463 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 482 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 514 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 533 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 546 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() 562 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() [all …]
|
/kernel/linux/linux-5.10/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);
|
D | free-space-tree-tests.c | 20 struct btrfs_fs_info *fs_info, in __check_free_space_extents() 107 struct btrfs_fs_info *fs_info, in check_free_space_extents() 150 struct btrfs_fs_info *fs_info, in test_empty_block_group() 164 struct btrfs_fs_info *fs_info, in test_remove_all() 185 struct btrfs_fs_info *fs_info, in test_remove_beginning() 208 struct btrfs_fs_info *fs_info, in test_remove_end() 231 struct btrfs_fs_info *fs_info, in test_remove_middle() 255 struct btrfs_fs_info *fs_info, in test_merge_left() 292 struct btrfs_fs_info *fs_info, in test_merge_right() 330 struct btrfs_fs_info *fs_info, in test_merge_both() [all …]
|
D | btrfs-tests.c | 89 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() 110 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() 112 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() 144 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) in btrfs_free_dummy_fs_info() 204 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, in btrfs_alloc_dummy_block_group() 243 struct btrfs_fs_info *fs_info) in btrfs_init_dummy_trans()
|