/Linux-v5.15/fs/btrfs/ |
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); 101 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() argument 103 if (fs_info->csum_shash) in btrfs_free_csum_hash() 104 crypto_free_shash(fs_info->csum_shash); in btrfs_free_csum_hash() 211 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local 213 const int first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block() [all …]
|
D | transaction.c | 133 btrfs_err(transaction->fs_info, in btrfs_put_transaction() 161 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local 165 down_write(&fs_info->commit_root_sem); in switch_commit_roots() 183 btrfs_drop_and_free_fs_root(fs_info, root); in switch_commit_roots() 214 spin_lock(&fs_info->block_group_cache_lock); in switch_commit_roots() 216 &fs_info->caching_block_groups, list) { in switch_commit_roots() 227 spin_unlock(&fs_info->block_group_cache_lock); in switch_commit_roots() 228 up_write(&fs_info->commit_root_sem); in switch_commit_roots() 265 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local 270 btrfs_block_rsv_release(fs_info, &fs_info->chunk_block_rsv, in btrfs_trans_release_chunk_metadata() [all …]
|
D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local 121 bytes = ALIGN(bytes, fs_info->sectorsize); in btrfs_alloc_data_chunk_ondemand() 126 return btrfs_reserve_data_bytes(fs_info, bytes, flush); in btrfs_alloc_data_chunk_ondemand() 132 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() local 136 len = round_up(start + len, fs_info->sectorsize) - in btrfs_check_data_free_space() 137 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 138 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 147 btrfs_free_reserved_data_space_noquota(fs_info, len); 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() argument 166 ASSERT(IS_ALIGNED(len, fs_info->sectorsize)); in btrfs_free_reserved_data_space_noquota() [all …]
|
D | block-rsv.c | 102 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() argument 150 btrfs_space_info_free_bytes_may_use(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() argument 185 rsv->space_info = btrfs_find_space_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() argument 198 btrfs_init_metadata_block_rsv(fs_info, block_rsv, type); in btrfs_alloc_block_rsv() 202 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() argument 207 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL); in btrfs_free_block_rsv() 274 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() argument 278 struct btrfs_block_rsv *global_rsv = &fs_info->global_block_rsv; in btrfs_block_rsv_release() [all …]
|
D | dev-replace.c | 67 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, 71 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() argument 74 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace() 75 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_init_dev_replace() 103 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace() 105 btrfs_err(fs_info, in btrfs_init_dev_replace() 135 btrfs_warn(fs_info, in btrfs_init_dev_replace() 166 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace() 168 btrfs_err(fs_info, in btrfs_init_dev_replace() 178 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace() [all …]
|
D | reada.c | 82 struct btrfs_fs_info *fs_info; member 88 static void reada_start_machine(struct btrfs_fs_info *fs_info); 89 static void __reada_start_machine(struct btrfs_fs_info *fs_info); 97 static void __readahead_hook(struct btrfs_fs_info *fs_info, in __readahead_hook() argument 162 btrfs_debug(fs_info, in __readahead_hook() 197 reada_extent_put(fs_info, re); /* one ref for each entry */ in __readahead_hook() 205 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_readahead_hook() local 210 spin_lock(&fs_info->reada_lock); in btree_readahead_hook() 211 re = radix_tree_lookup(&fs_info->reada_tree, in btree_readahead_hook() 212 eb->start >> fs_info->sectorsize_bits); in btree_readahead_hook() [all …]
|
D | space-info.c | 217 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() argument 225 disk_super = fs_info->super_copy; in btrfs_init_space_info() 234 ret = create_space_info(fs_info, flags); in btrfs_init_space_info() 240 ret = create_space_info(fs_info, flags); in btrfs_init_space_info() 243 ret = create_space_info(fs_info, flags); in btrfs_init_space_info() 248 ret = create_space_info(fs_info, flags); in btrfs_init_space_info() 295 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() argument 304 profile = btrfs_system_alloc_profile(fs_info); in calc_available_free_space() 306 profile = btrfs_metadata_alloc_profile(fs_info); in calc_available_free_space() 308 avail = atomic64_read(&fs_info->free_chunk_space); in calc_available_free_space() [all …]
|
D | qgroup.c | 70 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() argument 74 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add() 78 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() argument 82 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release() 96 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() argument 103 qgroup_rsv_add(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_add_by_qgroup() 106 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() argument 113 qgroup_rsv_release(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_release_by_qgroup() 167 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, 169 static void qgroup_rescan_zero_tracking(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() argument 79 if (fs_info->sectorsize == PAGE_SIZE || PagePrivate(page)) in btrfs_attach_subpage() 82 ret = btrfs_alloc_subpage(fs_info, &subpage, type); in btrfs_attach_subpage() 89 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage() argument 95 if (fs_info->sectorsize == PAGE_SIZE || !PagePrivate(page)) in btrfs_detach_subpage() 103 int btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage() argument 107 if (fs_info->sectorsize == PAGE_SIZE) in btrfs_alloc_subpage() 137 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_inc_eb_refs() argument 142 if (fs_info->sectorsize == PAGE_SIZE) 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() argument [all …]
|
D | tree-mod-log.c | 43 static inline u64 btrfs_inc_tree_mod_seq(struct btrfs_fs_info *fs_info) in btrfs_inc_tree_mod_seq() argument 45 return atomic64_inc_return(&fs_info->tree_mod_seq); in btrfs_inc_tree_mod_seq() 56 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_get_tree_mod_seq() argument 59 write_lock(&fs_info->tree_mod_log_lock); in btrfs_get_tree_mod_seq() 61 elem->seq = btrfs_inc_tree_mod_seq(fs_info); in btrfs_get_tree_mod_seq() 62 list_add_tail(&elem->list, &fs_info->tree_mod_seq_list); in btrfs_get_tree_mod_seq() 63 set_bit(BTRFS_FS_TREE_MOD_LOG_USERS, &fs_info->flags); in btrfs_get_tree_mod_seq() 65 write_unlock(&fs_info->tree_mod_log_lock); in btrfs_get_tree_mod_seq() 70 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_put_tree_mod_seq() argument 83 write_lock(&fs_info->tree_mod_log_lock); in btrfs_put_tree_mod_seq() [all …]
|
D | block-group.c | 26 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target() argument 28 struct btrfs_balance_control *bctl = fs_info->balance_ctl; in get_restripe_target() 55 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile() argument 57 u64 num_devices = fs_info->fs_devices->rw_devices; in btrfs_reduce_alloc_profile() 66 spin_lock(&fs_info->balance_lock); in btrfs_reduce_alloc_profile() 67 target = get_restripe_target(fs_info, flags); in btrfs_reduce_alloc_profile() 69 spin_unlock(&fs_info->balance_lock); in btrfs_reduce_alloc_profile() 72 spin_unlock(&fs_info->balance_lock); in btrfs_reduce_alloc_profile() 97 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in btrfs_get_alloc_profile() argument 104 seq = read_seqbegin(&fs_info->profiles_lock); in btrfs_get_alloc_profile() [all …]
|
D | sysfs.c | 112 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() argument 115 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() 124 static void set_features(struct btrfs_fs_info *fs_info, in set_features() argument 127 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() 171 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() local 173 if (fs_info) { in btrfs_feature_attr_show() 174 u64 features = get_features(fs_info, fa->feature_set); in btrfs_feature_attr_show() 187 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() local 193 fs_info = to_fs_info(kobj); in btrfs_feature_attr_store() 194 if (!fs_info) in btrfs_feature_attr_store() [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 | ref-verify.c | 211 static void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() argument 215 btrfs_err(fs_info, " ref-verify: no stacktrace"); in __print_stack_trace() 225 static inline void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() argument 228 btrfs_err(fs_info, " ref-verify: no stacktrace support"); in __print_stack_trace() 260 static struct block_entry *add_block_entry(struct btrfs_fs_info *fs_info, in add_block_entry() argument 280 spin_lock(&fs_info->ref_verify_lock); in add_block_entry() 281 exist = insert_block_entry(&fs_info->block_tree, be); in add_block_entry() 309 static int add_tree_block(struct btrfs_fs_info *fs_info, u64 ref_root, in add_tree_block() argument 329 be = add_block_entry(fs_info, bytenr, fs_info->nodesize, ref_root); in add_tree_block() 349 spin_unlock(&fs_info->ref_verify_lock); in add_tree_block() [all …]
|
D | super.c | 127 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_handle_fs_error() argument 130 struct super_block *sb = fs_info->sb; in __btrfs_handle_fs_error() 165 set_bit(BTRFS_FS_STATE_ERROR, &fs_info->fs_state); in __btrfs_handle_fs_error() 174 btrfs_discard_stop(fs_info); in __btrfs_handle_fs_error() 178 btrfs_info(fs_info, "forced readonly"); in __btrfs_handle_fs_error() 217 void __cold btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_printk() argument 244 if (fs_info) in btrfs_printk() 246 fs_info->sb->s_id, &vaf); in btrfs_printk() 256 void __cold btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_warn_32bit_limit() argument 258 if (!test_and_set_bit(BTRFS_FS_32BIT_WARN, &fs_info->flags)) { in btrfs_warn_32bit_limit() [all …]
|
D | volumes.c | 247 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info); 250 static int __btrfs_map_block(struct btrfs_fs_info *fs_info, 948 btrfs_info_in_rcu(device->fs_info, in device_list_add() 1136 device->fs_info = NULL; in btrfs_close_one_device() 1177 fs_devices->fs_info = NULL; in close_fs_devices() 1398 lockdep_assert_held(&device->fs_info->chunk_mutex); in contains_pending_extent() 1565 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent_start() local 1566 struct btrfs_root *root = fs_info->dev_root; in find_free_dev_extent_start() 1712 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local 1713 struct btrfs_root *root = fs_info->dev_root; in btrfs_free_dev_extent() [all …]
|
D | scrub.c | 156 struct btrfs_fs_info *fs_info; member 215 static void scrub_recheck_block(struct btrfs_fs_info *fs_info, 242 static void scrub_remap_extent(struct btrfs_fs_info *fs_info, 273 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() argument 275 while (atomic_read(&fs_info->scrub_pause_req)) { in __scrub_blocked_if_needed() 276 mutex_unlock(&fs_info->scrub_lock); in __scrub_blocked_if_needed() 277 wait_event(fs_info->scrub_pause_wait, in __scrub_blocked_if_needed() 278 atomic_read(&fs_info->scrub_pause_req) == 0); in __scrub_blocked_if_needed() 279 mutex_lock(&fs_info->scrub_lock); in __scrub_blocked_if_needed() 283 static void scrub_pause_on(struct btrfs_fs_info *fs_info) in scrub_pause_on() argument [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() argument 19 spin_lock_init(&fs_info->ref_verify_lock); in btrfs_init_ref_verify() 20 fs_info->block_tree = RB_ROOT; in btrfs_init_ref_verify() 23 static inline int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info) in btrfs_build_ref_tree() argument 28 static inline void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info) in btrfs_free_ref_cache() argument 32 static inline int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, in btrfs_ref_tree_mod() argument [all …]
|
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); 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() argument 88 static inline int btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode() argument 90 if (!btrfs_is_zoned(fs_info)) in btrfs_check_zoned_mode() 93 btrfs_err(fs_info, "zoned block devices support is not enabled"); in btrfs_check_zoned_mode() 169 static inline bool btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, in btrfs_check_meta_write_pointer() argument 196 struct btrfs_fs_info *fs_info, in btrfs_zoned_get_device() argument [all …]
|
D | file-item.c | 46 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_safe_disk_i_size_write() local 51 if (btrfs_fs_incompat(fs_info, NO_HOLES)) { in btrfs_inode_safe_disk_i_size_write() 87 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize)); in btrfs_inode_set_file_extent_range() 89 if (btrfs_fs_incompat(inode->root->fs_info, NO_HOLES)) in btrfs_inode_set_file_extent_range() 115 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize) || in btrfs_inode_clear_file_extent_range() 118 if (btrfs_fs_incompat(inode->root->fs_info, NO_HOLES)) in btrfs_inode_clear_file_extent_range() 124 static inline u32 max_ordered_sum_bytes(struct btrfs_fs_info *fs_info, in max_ordered_sum_bytes() argument 129 return ncsums * fs_info->sectorsize; in max_ordered_sum_bytes() 183 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csum() local 190 const u32 csum_size = fs_info->csum_size; in btrfs_lookup_csum() [all …]
|
D | volumes.h | 62 struct btrfs_fs_info *fs_info; member 278 struct btrfs_fs_info *fs_info; member 347 struct btrfs_fs_info *fs_info; member 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 …]
|
/Linux-v5.15/fs/btrfs/tests/ |
D | btrfs-tests.c | 95 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() argument 105 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device() 118 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() local 121 if (!fs_info) in btrfs_alloc_dummy_fs_info() 122 return fs_info; in btrfs_alloc_dummy_fs_info() 123 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info() 125 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info() 126 kfree(fs_info); in btrfs_alloc_dummy_fs_info() 129 INIT_LIST_HEAD(&fs_info->fs_devices->devices); in btrfs_alloc_dummy_fs_info() 131 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info() [all …]
|
D | qgroup-tests.c | 207 struct btrfs_fs_info *fs_info = root->fs_info; in test_no_shared_qgroup() local 212 btrfs_init_dummy_trans(&trans, fs_info); in test_no_shared_qgroup() 226 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, false); in test_no_shared_qgroup() 238 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, false); in test_no_shared_qgroup() 253 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, in test_no_shared_qgroup() 261 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, false); in test_no_shared_qgroup() 272 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, false); in test_no_shared_qgroup() 287 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, 0, 0)) { in test_no_shared_qgroup() 304 struct btrfs_fs_info *fs_info = root->fs_info; in test_multiple_refs() local 309 btrfs_init_dummy_trans(&trans, fs_info); in test_multiple_refs() [all …]
|
D | free-space-tree-tests.c | 20 struct btrfs_fs_info *fs_info, in __check_free_space_extents() argument 70 offset += fs_info->sectorsize; in __check_free_space_extents() 107 struct btrfs_fs_info *fs_info, in check_free_space_extents() argument 126 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 145 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 150 struct btrfs_fs_info *fs_info, in test_empty_block_group() argument 159 return check_free_space_extents(trans, fs_info, cache, path, in test_empty_block_group() 164 struct btrfs_fs_info *fs_info, in test_remove_all() argument 180 return check_free_space_extents(trans, fs_info, cache, path, in test_remove_all() 185 struct btrfs_fs_info *fs_info, in test_remove_beginning() argument [all …]
|