| /Linux-v5.4/fs/btrfs/ |
| D | disk-io.h | 44 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 47 void readahead_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr); 49 struct btrfs_fs_info *fs_info, 55 void close_ctree(struct btrfs_fs_info *fs_info); 56 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors); 60 int btrfs_commit_super(struct btrfs_fs_info *fs_info); 64 struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, 66 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, 68 void btrfs_free_fs_roots(struct btrfs_fs_info *fs_info); 70 struct btrfs_root *btrfs_get_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 | 65 struct btrfs_fs_info *fs_info; 266 struct btrfs_fs_info *fs_info; 329 struct btrfs_fs_info *fs_info; 424 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 427 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 430 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 432 int btrfs_rmap_block(struct btrfs_fs_info *fs_info, u64 chunk_start, 434 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 435 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 438 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, [all …]
|
| D | block-group.h | 48 struct btrfs_fs_info *fs_info; 164 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 174 struct btrfs_fs_info *info, u64 bytenr); 176 struct btrfs_fs_info *info, u64 bytenr); 181 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, 184 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 185 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 198 struct btrfs_fs_info *fs_info, 202 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 204 int btrfs_read_block_groups(struct btrfs_fs_info *info); [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); 86 static inline void btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 93 static inline void btrfs_unuse_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_unuse_block_rsv()
|
| 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 | qgroup.h | 235 int btrfs_quota_enable(struct btrfs_fs_info *fs_info); 236 int btrfs_quota_disable(struct btrfs_fs_info *fs_info); 237 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info); 238 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info); 239 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, 249 int btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info); 250 void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info); 265 struct btrfs_fs_info *fs_info, 290 int btrfs_qgroup_trace_extent_post(struct btrfs_fs_info *fs_info, 337 void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, [all …]
|
| D | transaction.h | 87 struct btrfs_fs_info *fs_info; 126 struct btrfs_fs_info *fs_info; 192 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid); 209 struct btrfs_fs_info *fs_info) in btrfs_commit_transaction_locksafe() 216 void btrfs_throttle(struct btrfs_fs_info *fs_info); 219 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, 221 int btrfs_wait_extents(struct btrfs_fs_info *fs_info, 224 int btrfs_transaction_blocked(struct btrfs_fs_info *info); 225 int btrfs_transaction_in_commit(struct btrfs_fs_info *info); 227 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info);
|
| D | space-info.h | 91 btrfs_space_info_update_##name(struct btrfs_fs_info *fs_info, \ 112 int btrfs_init_space_info(struct btrfs_fs_info *fs_info); 113 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, 117 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, 121 void btrfs_clear_space_info_full(struct btrfs_fs_info *info); 122 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, 129 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, 133 struct btrfs_fs_info *fs_info, in btrfs_space_info_free_bytes_may_use()
|
| 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 | space-info.c | 26 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() 37 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 77 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 114 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, in btrfs_update_space_info() 139 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() 163 static int can_overcommit(struct btrfs_fs_info *fs_info, in can_overcommit() 213 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() 261 static void __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in __btrfs_dump_space_info() 284 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info() 315 static void btrfs_writeback_inodes_sb_nr(struct btrfs_fs_info *fs_info, in btrfs_writeback_inodes_sb_nr() [all …]
|
| D | sysfs.h | 27 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info, 33 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info); 34 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info); 36 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
|
| D | ctree.h | 485 bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr); 529 struct btrfs_fs_info { struct 906 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument 972 struct btrfs_fs_info *fs_info; 1126 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_LEAF_DATA_SIZE() 1134 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_ITEM_SIZE() 1139 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_fs_info *info) in BTRFS_NODEPTRS_PER_BLOCK() 1146 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_INLINE_DATA_SIZE() 1152 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_XATTR_SIZE() 2376 u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes); [all …]
|
| D | async-thread.h | 12 struct btrfs_fs_info; 59 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info, 73 struct btrfs_fs_info *btrfs_work_owner(const struct btrfs_work *work); 74 struct btrfs_fs_info *btrfs_workqueue_owner(const struct __btrfs_workqueue *wq);
|
| D | block-rsv.c | 9 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() 87 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() 96 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() 109 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() 181 u64 __btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in __btrfs_block_rsv_release() 232 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes() 257 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 320 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() 345 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_release_global_block_rsv() 362 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() [all …]
|
| D | transaction.c | 82 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 142 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 157 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 284 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() 344 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 363 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 395 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 414 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 427 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() 443 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() [all …]
|
| D | sysfs.c | 69 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj); 88 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 100 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 147 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() 163 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() 230 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() 347 struct btrfs_fs_info *fs_info = to_fs_info(kobj->parent); in global_rsv_size_show() 356 struct btrfs_fs_info *fs_info = to_fs_info(kobj->parent); in global_rsv_reserved_show() 476 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_label_show() 491 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_label_store() [all …]
|
| D | dev-replace.c | 25 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, 28 struct btrfs_fs_info *fs_info, 33 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() 180 static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, in btrfs_init_dev_replace_tgtdev() 280 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_replace() 394 static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_start() 516 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_by_ioctl() 549 static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_blocked() 559 static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_unblocked() 565 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_finishing() [all …]
|
| D | delalloc-space.c | 15 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() 141 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_check_data_free_space() 173 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_free_reserved_data_space_noquota() 221 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() 243 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 282 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 304 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() 402 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() 429 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
|
| D | backref.h | 22 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical, 30 int iterate_extent_inodes(struct btrfs_fs_info *fs_info, 36 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info, 44 struct btrfs_fs_info *fs_info, u64 bytenr,
|
| 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; 208 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btree_get_extent() 257 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() 365 static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 394 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() [all …]
|
| D | reada.c | 80 struct btrfs_fs_info *fs_info; 83 static void reada_extent_put(struct btrfs_fs_info *, struct reada_extent *); 86 static void reada_start_machine(struct btrfs_fs_info *fs_info); 87 static void __reada_start_machine(struct btrfs_fs_info *fs_info); 94 static void __readahead_hook(struct btrfs_fs_info *fs_info, in __readahead_hook() 200 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_readahead_hook() 227 struct btrfs_fs_info *fs_info = dev->fs_info; in reada_find_zone() 299 static struct reada_extent *reada_find_extent(struct btrfs_fs_info *fs_info, in reada_find_extent() 483 static void reada_extent_put(struct btrfs_fs_info *fs_info, in reada_extent_put() 546 struct btrfs_fs_info *fs_info = rc->fs_info; in reada_add_block() [all …]
|
| D | block-group.c | 24 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target() 53 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile() 98 static u64 get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in get_alloc_profile() 118 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in btrfs_get_alloc_profile() 151 static int btrfs_add_block_group_cache(struct btrfs_fs_info *info, in btrfs_add_block_group_cache() 192 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search() 236 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_first_block_group() 245 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_block_group() 253 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group() 278 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_inc_nocow_writers() [all …]
|
| /Linux-v5.4/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);
|
| D | free-space-tree-tests.c | 20 struct btrfs_fs_info *fs_info, in __check_free_space_extents() 109 struct btrfs_fs_info *fs_info, in check_free_space_extents() 152 struct btrfs_fs_info *fs_info, in test_empty_block_group() 166 struct btrfs_fs_info *fs_info, in test_remove_all() 187 struct btrfs_fs_info *fs_info, in test_remove_beginning() 211 struct btrfs_fs_info *fs_info, in test_remove_end() 235 struct btrfs_fs_info *fs_info, in test_remove_middle() 260 struct btrfs_fs_info *fs_info, in test_merge_left() 298 struct btrfs_fs_info *fs_info, in test_merge_right() 337 struct btrfs_fs_info *fs_info, in test_merge_both() [all …]
|