| /Linux-v5.15/fs/btrfs/ |
| D | disk-io.c | 101 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() local 287 static int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 314 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() local 381 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_read_extent_buffer_pages() local 430 struct btrfs_fs_info *fs_info = eb->fs_info; in csum_one_extent_buffer() local 458 static int csum_dirty_subpage_buffers(struct btrfs_fs_info *fs_info, in csum_dirty_subpage_buffers() 501 static int csum_dirty_buffer(struct btrfs_fs_info *fs_info, struct bio_vec *bvec) in csum_dirty_buffer() 536 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() local 566 struct btrfs_fs_info *fs_info = eb->fs_info; in validate_extent_buffer() local [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 | dev-replace.c | 71 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() 243 static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, in btrfs_init_dev_replace_tgtdev() 352 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_replace() local 466 static int mark_block_group_to_copy(struct btrfs_fs_info *fs_info, in mark_block_group_to_copy() 594 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_finish_block_group_to_copy() local 645 static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_start() 768 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_by_ioctl() 801 static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_blocked() 811 static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_unblocked() 849 struct btrfs_fs_info *fs_info, in btrfs_dev_replace_update_device_in_mapping_tree() [all …]
|
| D | transaction.c | 161 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local 265 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local 278 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 411 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() local 472 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() local 491 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() local 524 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 543 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 556 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() local 572 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() local [all …]
|
| D | space-info.c | 217 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_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() 403 #define DUMP_BLOCK_RSV(fs_info, rsv_name) \ argument 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() 467 static inline u64 calc_reclaim_items_nr(struct btrfs_fs_info *fs_info, in calc_reclaim_items_nr() 485 static void shrink_delalloc(struct btrfs_fs_info *fs_info, in shrink_delalloc() 616 static void flush_space(struct btrfs_fs_info *fs_info, in flush_space() [all …]
|
| D | ref-verify.h | 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.c | 26 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target() 55 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) 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() 256 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group() local 280 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_inc_nocow_writers() 303 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_dec_nocow_writers() 324 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, in btrfs_dec_block_group_reservations() 448 struct btrfs_fs_info *fs_info = block_group->fs_info; in fragment_free_space() local 514 struct btrfs_fs_info *fs_info = block_group->fs_info; in load_extent_tree_free() local 649 struct btrfs_fs_info *fs_info; in caching_thread() local [all …]
|
| D | qgroup.c | 70 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() 78 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() 96 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, 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() 172 static struct btrfs_qgroup *find_qgroup_rb(struct btrfs_fs_info *fs_info, in find_qgroup_rb() 191 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info, in add_qgroup_rb() 225 static void __del_qgroup_rb(struct btrfs_fs_info *fs_info, in __del_qgroup_rb() 249 static int del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) in del_qgroup_rb() 262 static int add_relation_rb(struct btrfs_fs_info *fs_info, in add_relation_rb() 287 static int del_relation_rb(struct btrfs_fs_info *fs_info, in del_relation_rb() [all …]
|
| D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local 132 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() local 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() local 208 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() local 230 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 269 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 291 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() local 379 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() local 406 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents() local
|
| 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() 448 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_release_global_block_rsv() 466 struct btrfs_fs_info *fs_info = root->fs_info; in get_block_rsv() local [all …]
|
| D | sysfs.c | 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() local 187 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() local 254 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() local 438 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() local 449 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() local 460 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() local 471 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() local 482 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_extent_bytes_show() local [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() 56 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info, 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() 129 static noinline int tree_mod_log_insert(struct btrfs_fs_info *fs_info, in tree_mod_log_insert() 169 static inline bool tree_mod_dont_log(struct btrfs_fs_info *fs_info, in tree_mod_dont_log() 187 static inline bool tree_mod_need_log(const struct btrfs_fs_info *fs_info, in tree_mod_need_log() 323 static inline int tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, in tree_mod_log_free_eb() 347 struct btrfs_fs_info *fs_info = old_root->fs_info; in btrfs_tree_mod_log_insert_root() local 413 static struct tree_mod_elem *__tree_mod_log_search(struct btrfs_fs_info *fs_info, in __tree_mod_log_search() 460 static struct tree_mod_elem *tree_mod_log_search_oldest(struct btrfs_fs_info *fs_info, in tree_mod_log_search_oldest() [all …]
|
| D | volumes.c | 1565 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent_start() local 1712 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local 1762 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk() 1781 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid() 1947 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices() 1997 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local 2016 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices() 2030 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblocks() 2075 int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, in btrfs_rm_device() 2324 struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_find_device_by_path() [all …]
|
| D | super.c | 127 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_handle_fs_error() 217 void __cold btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_printk() 256 void __cold btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_warn_32bit_limit() 268 void __cold btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_err_32bit_limit() 299 struct btrfs_fs_info *fs_info = trans->fs_info; in __btrfs_abort_transaction() local 313 void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_panic() 488 static bool check_ro_option(struct btrfs_fs_info *fs_info, unsigned long opt, in check_ro_option() 1167 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info, in btrfs_get_subvol_name_from_objectid() 1289 static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objectid) in get_default_subvol_objectid() 1334 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_fill_super() local [all …]
|
| D | reada.c | 82 struct btrfs_fs_info *fs_info; member 97 static void __readahead_hook(struct btrfs_fs_info *fs_info, in __readahead_hook() 205 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_readahead_hook() local 232 struct btrfs_fs_info *fs_info = dev->fs_info; in reada_find_zone() local 304 static struct reada_extent *reada_find_extent(struct btrfs_fs_info *fs_info, in reada_find_extent() 496 static void reada_extent_put(struct btrfs_fs_info *fs_info, in reada_extent_put() 541 struct btrfs_fs_info *fs_info = zone->device->fs_info; in reada_zone_release() local 563 struct btrfs_fs_info *fs_info = rc->fs_info; in reada_add_block() local 659 static int reada_tree_block_flagged(struct btrfs_fs_info *fs_info, u64 bytenr, in reada_tree_block_flagged() 691 struct btrfs_fs_info *fs_info = dev->fs_info; in reada_start_machine_dev() local [all …]
|
| D | ioctl.c | 193 static int check_fsflags_compatible(struct btrfs_fs_info *fs_info, in check_fsflags_compatible() 218 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_fileattr_set() local 366 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start() 391 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock() 402 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock() 407 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish() 422 static noinline int btrfs_ioctl_fitrim(struct btrfs_fs_info *fs_info, in btrfs_ioctl_fitrim() 507 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); in create_subvol() local 720 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); in create_snapshot() local 900 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); in btrfs_mksubvol() local [all …]
|
| D | scrub.c | 156 struct btrfs_fs_info *fs_info; member 273 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() 283 static void scrub_pause_on(struct btrfs_fs_info *fs_info) in scrub_pause_on() 289 static void scrub_pause_off(struct btrfs_fs_info *fs_info) in scrub_pause_off() 299 static void scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in scrub_blocked_if_needed() 418 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in lock_full_stripe() 465 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in unlock_full_stripe() 571 struct btrfs_fs_info *fs_info, int is_dev_replace) in scrub_setup_ctx() 641 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode() local 724 struct btrfs_fs_info *fs_info; in scrub_print_warning() local [all …]
|
| D | relocation.c | 351 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() 625 struct btrfs_fs_info *fs_info = root->fs_info; in __add_reloc_root() local 658 struct btrfs_fs_info *fs_info = root->fs_info; in __del_reloc_root() local 702 struct btrfs_fs_info *fs_info = root->fs_info; in __update_reloc_root() local 733 struct btrfs_fs_info *fs_info = root->fs_info; in create_reloc_root() local 836 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_reloc_root() local 903 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_update_reloc_root() local 1057 struct btrfs_fs_info *fs_info = root->fs_info; in replace_file_extents() local 1201 struct btrfs_fs_info *fs_info = dest->fs_info; in replace_path() local 1507 struct btrfs_fs_info *fs_info = root->fs_info; in invalidate_extent_cache() local [all …]
|
| D | ref-verify.c | 211 static void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() 225 static inline void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() 260 static struct block_entry *add_block_entry(struct btrfs_fs_info *fs_info, in add_block_entry() 309 static int add_tree_block(struct btrfs_fs_info *fs_info, u64 ref_root, in add_tree_block() 354 static int add_shared_data_ref(struct btrfs_fs_info *fs_info, in add_shared_data_ref() 383 static int add_extent_data_ref(struct btrfs_fs_info *fs_info, in add_extent_data_ref() 429 static int process_extent_item(struct btrfs_fs_info *fs_info, in process_extent_item() 501 struct btrfs_fs_info *fs_info = root->fs_info; in process_leaf() local 606 static void dump_ref_action(struct btrfs_fs_info *fs_info, in dump_ref_action() 620 static void dump_block_entry(struct btrfs_fs_info *fs_info, in dump_block_entry() [all …]
|
| D | file.c | 87 struct btrfs_fs_info *fs_info = inode->root->fs_info; in __btrfs_add_inode_defrag() local 121 static inline int __need_auto_defrag(struct btrfs_fs_info *fs_info) in __need_auto_defrag() 140 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_inode_defrag() local 189 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_requeue_inode_defrag() local 214 btrfs_pick_defrag_inode(struct btrfs_fs_info *fs_info, u64 root, u64 ino) in btrfs_pick_defrag_inode() 254 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info) in btrfs_cleanup_defrag_inodes() 275 static int __btrfs_run_defrag_inode(struct btrfs_fs_info *fs_info, in __btrfs_run_defrag_inode() 340 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info) in btrfs_run_defrag_inodes() 467 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_dirty_pages() local 693 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_drop_extents() local [all …]
|
| D | tree-checker.c | 54 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err() local 79 const struct btrfs_fs_info *fs_info = eb->fs_info; in file_extent_err() local 139 const struct btrfs_fs_info *fs_info = eb->fs_info; in dir_item_err() local 202 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_extent_data_item() local 341 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_csum_item() local 484 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_dir_item() local 620 const struct btrfs_fs_info *fs_info = eb->fs_info; in block_group_err() local 714 const struct btrfs_fs_info *fs_info = leaf->fs_info; in chunk_err() local 762 struct btrfs_fs_info *fs_info = leaf->fs_info; in btrfs_check_chunk_valid() local 1006 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_inode_item() local [all …]
|
| D | delayed-ref.c | 29 bool btrfs_check_space_for_delayed_refs(struct btrfs_fs_info *fs_info) in btrfs_check_space_for_delayed_refs() 81 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr) in btrfs_delayed_refs_rsv_release() 102 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_update_delayed_refs_rsv() local 128 void btrfs_migrate_to_delayed_refs_rsv(struct btrfs_fs_info *fs_info, in btrfs_migrate_to_delayed_refs_rsv() 176 int btrfs_delayed_refs_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_delayed_refs_rsv_refill() 484 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_merge_delayed_refs() local 510 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq) in btrfs_check_delayed_seq() 643 struct btrfs_fs_info *fs_info = trans->fs_info; in update_existing_head_ref() local 859 static void init_delayed_ref_common(struct btrfs_fs_info *fs_info, in init_delayed_ref_common() 894 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_add_delayed_tree_ref() local [all …]
|
| /Linux-v5.15/fs/btrfs/tests/ |
| 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 | extent-map-tests.c | 53 static int test_case_1(struct btrfs_fs_info *fs_info, in test_case_1() 143 static int test_case_2(struct btrfs_fs_info *fs_info, in test_case_2() 225 static int __test_case_3(struct btrfs_fs_info *fs_info, in __test_case_3() 308 static int test_case_3(struct btrfs_fs_info *fs_info, in test_case_3() 324 static int __test_case_4(struct btrfs_fs_info *fs_info, in __test_case_4() 430 static int test_case_4(struct btrfs_fs_info *fs_info, in test_case_4() 456 static int test_rmap_block(struct btrfs_fs_info *fs_info, in test_rmap_block() 553 struct btrfs_fs_info *fs_info = NULL; in btrfs_test_extent_map() local
|
| D | btrfs-tests.c | 95 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) 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 151 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) in btrfs_free_dummy_fs_info() 211 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, in btrfs_alloc_dummy_block_group() 250 struct btrfs_fs_info *fs_info) in btrfs_init_dummy_trans()
|