/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 | volumes.h | 66 struct btrfs_fs_info *fs_info; 267 struct btrfs_fs_info *fs_info; 330 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 | 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 | 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 | 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 | 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()
|
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 | transaction.h | 86 struct btrfs_fs_info *fs_info; 129 struct btrfs_fs_info *fs_info; 202 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid); 212 void btrfs_throttle(struct btrfs_fs_info *fs_info); 215 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, 217 int btrfs_wait_extents(struct btrfs_fs_info *fs_info, 220 int btrfs_transaction_blocked(struct btrfs_fs_info *info); 221 int btrfs_transaction_in_commit(struct btrfs_fs_info *info); 223 void btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info);
|
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 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 212 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() 260 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 | ctree.h | 525 struct btrfs_fs_info { struct 903 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument 973 struct btrfs_fs_info *fs_info; 1130 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_LEAF_DATA_SIZE() 1138 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_ITEM_SIZE() 1143 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_fs_info *info) in BTRFS_NODEPTRS_PER_BLOCK() 1150 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_INLINE_DATA_SIZE() 1156 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_XATTR_SIZE() 2380 u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes); 2386 static inline u64 btrfs_calc_insert_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size() [all …]
|
D | transaction.c | 85 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 146 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 161 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 289 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() 349 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 368 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 400 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 419 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 432 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() 448 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() [all …]
|
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 | 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 | block-rsv.c | 10 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() 89 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() 98 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() 111 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() 183 u64 __btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in __btrfs_block_rsv_release() 234 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes() 259 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 324 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() 349 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_release_global_block_rsv() 366 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() [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() 202 static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, in btrfs_init_dev_replace_tgtdev() 302 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_replace() 416 static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_start() 555 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_by_ioctl() 587 static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_blocked() 597 static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_unblocked() 634 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_finishing() [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 *btrfs_work_owner(const struct btrfs_work *work); 45 struct btrfs_fs_info *btrfs_workqueue_owner(const struct __btrfs_workqueue *wq);
|
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 | 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() 399 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() 426 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents()
|
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 …]
|
D | qgroup.c | 67 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() 75 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() 93 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() 103 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() 164 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, 166 static void qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info); 169 static struct btrfs_qgroup *find_qgroup_rb(struct btrfs_fs_info *fs_info, in find_qgroup_rb() 188 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info, in add_qgroup_rb() 246 static int del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) in del_qgroup_rb() 259 static int add_relation_rb(struct btrfs_fs_info *fs_info, in add_relation_rb() [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() 488 static void reada_extent_put(struct btrfs_fs_info *fs_info, in reada_extent_put() 551 struct btrfs_fs_info *fs_info = rc->fs_info; in reada_add_block() [all …]
|
/fs/btrfs/tests/ |
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 …]
|
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);
|