/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, 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); 55 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, 60 void __cold close_ctree(struct btrfs_fs_info *fs_info); 61 int btrfs_validate_super(struct btrfs_fs_info *fs_info, 63 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors); [all …]
|
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 | volumes.h | 62 struct btrfs_fs_info *fs_info; 282 struct btrfs_fs_info *fs_info; 367 struct btrfs_fs_info *fs_info; 478 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 481 int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 484 int btrfs_get_io_geometry(struct btrfs_fs_info *fs_info, struct extent_map *map, 487 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 488 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 492 blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio, 503 struct btrfs_device *btrfs_find_device_by_devspec(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 | block-group.h | 59 struct btrfs_fs_info *fs_info; 229 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 239 struct btrfs_fs_info *info, u64 bytenr); 241 struct btrfs_fs_info *info, u64 bytenr); 246 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, 249 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 250 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr); 261 struct btrfs_fs_info *fs_info, 265 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info); 268 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info); [all …]
|
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 | zoned.h | 37 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, 73 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info); 74 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, 83 static inline int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices() 96 static inline int btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode() 105 static inline int btrfs_check_mountopts_zoned(struct btrfs_fs_info *info) in btrfs_check_mountopts_zoned() [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 | 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 | 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 | 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 | 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 | transaction.h | 88 struct btrfs_fs_info *fs_info; 141 struct btrfs_fs_info *fs_info; 216 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid); 220 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info); 226 void btrfs_throttle(struct btrfs_fs_info *fs_info); 229 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, 232 int btrfs_transaction_blocked(struct btrfs_fs_info *info); 233 int btrfs_transaction_in_commit(struct btrfs_fs_info *info); 235 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 | 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() 441 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() 452 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() 463 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() 474 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() [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() 164 void btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_data_space_noquota() 185 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_free_reserved_data_space() 211 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() 233 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 272 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 294 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, 44 struct btrfs_fs_info *fs_info, u64 bytenr, 48 struct btrfs_fs_info *fs_info, u64 bytenr, 90 struct btrfs_fs_info *fs_info; 98 struct btrfs_fs_info *fs_info, gfp_t gfp_flag); 261 struct btrfs_fs_info *fs_info; 272 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info, 361 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
|
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() 129 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() 205 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 230 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() [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 | ctree.h | 526 void btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info); 631 struct btrfs_fs_info { struct 1065 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument 1130 static inline void btrfs_wake_unfinished_drop(struct btrfs_fs_info *fs_info) in btrfs_wake_unfinished_drop() 1160 struct btrfs_fs_info *fs_info; 1389 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_LEAF_DATA_SIZE() 1397 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_ITEM_SIZE() 1402 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_fs_info *info) in BTRFS_NODEPTRS_PER_BLOCK() 1409 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_INLINE_DATA_SIZE() 1415 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_XATTR_SIZE() [all …]
|
D | transaction.c | 161 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 269 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 282 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 416 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() 477 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 496 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 529 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 548 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 561 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() 577 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() [all …]
|
/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 …]
|