/linux-6.1.9/fs/btrfs/ |
D | disk-io.c | 66 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() 94 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local 169 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() 194 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_verify_level_key() local 261 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer() local 310 struct btrfs_fs_info *fs_info = eb->fs_info; in csum_one_extent_buffer() local 359 static int csum_dirty_subpage_buffers(struct btrfs_fs_info *fs_info, in csum_dirty_subpage_buffers() 402 static int csum_dirty_buffer(struct btrfs_fs_info *fs_info, struct bio_vec *bvec) in csum_dirty_buffer() 437 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() local 467 struct btrfs_fs_info *fs_info = eb->fs_info; in validate_extent_buffer() local [all …]
|
D | subpage.c | 66 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page) in btrfs_is_subpage() 120 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage() 144 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage() 158 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage() 196 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_inc_eb_refs() 211 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, in btrfs_page_dec_eb_refs() 227 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert() 243 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_reader() 254 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_reader() 296 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, in btrfs_subpage_start_writer() [all …]
|
D | transaction.c | 162 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local 235 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local 248 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 390 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() local 450 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() local 469 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() local 502 static void wait_current_trans(struct btrfs_fs_info *fs_info) in wait_current_trans() 522 static int may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 535 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() local 551 struct btrfs_fs_info *fs_info = root->fs_info; in start_transaction() local [all …]
|
D | space-info.c | 194 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size() 259 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 343 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() 379 static inline u64 writable_total_bytes(struct btrfs_fs_info *fs_info, in writable_total_bytes() 395 int btrfs_can_overcommit(struct btrfs_fs_info *fs_info, in btrfs_can_overcommit() 432 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, in btrfs_try_granting_tickets() 471 #define DUMP_BLOCK_RSV(fs_info, rsv_name) \ argument 496 static void dump_global_block_rsv(struct btrfs_fs_info *fs_info) in dump_global_block_rsv() 505 static void __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in __btrfs_dump_space_info() 523 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info, in btrfs_dump_space_info() [all …]
|
D | dev-replace.c | 71 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() 241 static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, in btrfs_init_dev_replace_tgtdev() 353 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_replace() local 467 static int mark_block_group_to_copy(struct btrfs_fs_info *fs_info, in mark_block_group_to_copy() 565 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_finish_block_group_to_copy() local 615 static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_start() 743 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_by_ioctl() 776 static void btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_blocked() 786 static void btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) in btrfs_rm_dev_replace_unblocked() 824 struct btrfs_fs_info *fs_info, in btrfs_dev_replace_update_device_in_mapping_tree() [all …]
|
D | block-rsv.c | 103 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() 181 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() 190 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() 203 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() 212 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_add() 245 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill() 275 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 326 int btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, in btrfs_cond_migrate_bytes() 351 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 421 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() local [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 | 27 static u64 get_restripe_target(struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target() 56 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile() 98 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in btrfs_get_alloc_profile() 263 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group() local 302 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, in btrfs_inc_nocow_writers() 355 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, in btrfs_dec_block_group_reservations() 466 struct btrfs_fs_info *fs_info = block_group->fs_info; in fragment_free_space() local 532 struct btrfs_fs_info *fs_info = block_group->fs_info; in load_extent_tree_free() local 662 struct btrfs_fs_info *fs_info; in caching_thread() local 734 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_cache_block_group() local [all …]
|
D | qgroup.c | 58 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() 66 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() 84 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() 94 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() 160 static struct btrfs_qgroup *find_qgroup_rb(struct btrfs_fs_info *fs_info, in find_qgroup_rb() 179 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info, in add_qgroup_rb() 213 static void __del_qgroup_rb(struct btrfs_fs_info *fs_info, in __del_qgroup_rb() 237 static int del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) in del_qgroup_rb() 286 static int add_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) in add_relation_rb() 298 static int del_relation_rb(struct btrfs_fs_info *fs_info, in del_relation_rb() [all …]
|
D | sysfs.c | 118 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 130 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 177 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() local 193 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() local 260 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() local 443 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() local 454 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() local 465 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() local 476 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() local 487 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_extent_bytes_show() local [all …]
|
D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local 133 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() local 171 void btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, in btrfs_free_reserved_data_space_noquota() 192 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_free_reserved_data_space() local 218 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_inode_rsv_release() local 240 static void btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, in btrfs_calculate_inode_block_rsv_size() 279 static void calc_inode_reservations(struct btrfs_fs_info *fs_info, in calc_inode_reservations() 302 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_delalloc_reserve_metadata() local 392 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_metadata() local 419 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_delalloc_release_extents() local
|
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 | 1570 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent_start() local 1717 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local 1767 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk() 1786 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid() 1946 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices() 1996 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local 2015 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices() 2029 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblocks() 2074 int btrfs_rm_device(struct btrfs_fs_info *fs_info, in btrfs_rm_device() 2347 int btrfs_get_dev_args_from_path(struct btrfs_fs_info *fs_info, in btrfs_get_dev_args_from_path() [all …]
|
D | ioctl.c | 214 static int check_fsflags_compatible(struct btrfs_fs_info *fs_info, in check_fsflags_compatible() 239 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_fileattr_set() local 387 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start() 413 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock() 426 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock() 431 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish() 439 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance() 467 static noinline int btrfs_ioctl_fitrim(struct btrfs_fs_info *fs_info, in btrfs_ioctl_fitrim() 574 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); in create_subvol() local 767 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); in create_snapshot() local [all …]
|
D | zoned.h | 94 static inline int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices() 117 static inline int btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode() 200 static inline bool btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, in btrfs_check_meta_write_pointer() 227 struct btrfs_fs_info *fs_info, in btrfs_zoned_get_device() 249 static inline void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, in btrfs_zone_finish_endio() 257 static inline void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info) { } in btrfs_free_zone_cache() 259 static inline bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info) in btrfs_zoned_should_reclaim() 264 static inline void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, in btrfs_zoned_release_data_reloc_bg() 267 static inline int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info) in btrfs_zone_finish_one_bg() 272 static inline int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, in btrfs_zoned_activate_one_bg() [all …]
|
D | zoned.c | 283 static int calculate_emulated_zone_size(struct btrfs_fs_info *fs_info) in calculate_emulated_zone_size() 326 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices() 353 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_get_dev_zone_info() local 698 static int btrfs_check_for_zoned_device(struct btrfs_fs_info *fs_info) in btrfs_check_for_zoned_device() 715 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode() 1207 struct btrfs_fs_info *fs_info = cache->fs_info; in calculate_alloc_pointer() local 1277 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_load_block_group_zone_info() local 1592 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_redirty_list_add() local 1627 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_use_zone_append() local 1681 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_rewrite_logical_zoned() local [all …]
|
D | super.c | 173 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_handle_fs_error() 265 void __cold _btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in _btrfs_printk() 308 void __cold btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_warn_32bit_limit() 320 void __cold btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_err_32bit_limit() 351 struct btrfs_fs_info *fs_info = trans->fs_info; in __btrfs_abort_transaction() local 367 void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_panic() 542 static bool check_ro_option(struct btrfs_fs_info *fs_info, unsigned long opt, in check_ro_option() 1269 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info, in btrfs_get_subvol_name_from_objectid() 1391 static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objectid) in get_default_subvol_objectid() 1436 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_fill_super() local [all …]
|
D | relocation.c | 353 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() 627 struct btrfs_fs_info *fs_info = root->fs_info; in __add_reloc_root() local 660 struct btrfs_fs_info *fs_info = root->fs_info; in __del_reloc_root() local 704 struct btrfs_fs_info *fs_info = root->fs_info; in __update_reloc_root() local 735 struct btrfs_fs_info *fs_info = root->fs_info; in create_reloc_root() local 838 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_reloc_root() local 905 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_update_reloc_root() local 1059 struct btrfs_fs_info *fs_info = root->fs_info; in replace_file_extents() local 1203 struct btrfs_fs_info *fs_info = dest->fs_info; in replace_path() local 1511 struct btrfs_fs_info *fs_info = root->fs_info; in invalidate_extent_cache() local [all …]
|
D | scrub.c | 161 struct btrfs_fs_info *fs_info; member 443 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() 453 static void scrub_pause_on(struct btrfs_fs_info *fs_info) in scrub_pause_on() 459 static void scrub_pause_off(struct btrfs_fs_info *fs_info) in scrub_pause_off() 469 static void scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in scrub_blocked_if_needed() 588 static int lock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in lock_full_stripe() 635 static int unlock_full_stripe(struct btrfs_fs_info *fs_info, u64 bytenr, in unlock_full_stripe() 739 struct btrfs_fs_info *fs_info, int is_dev_replace) in scrub_setup_ctx() 807 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode() local 890 struct btrfs_fs_info *fs_info; in scrub_print_warning() local [all …]
|
D | extent_io.c | 39 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb() local 49 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb() local 57 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info) in btrfs_extent_buffer_leak_debug_check() 224 static int process_one_page(struct btrfs_fs_info *fs_info, in process_one_page() 269 struct btrfs_fs_info *fs_info = btrfs_sb(mapping->host->i_sb); in __process_pages_contig() local 395 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in find_lock_delalloc_range() local 540 static int repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start, in repair_io_failure() 632 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_repair_eb_io_failure() local 674 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_clean_io_failure() local 743 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); in btrfs_get_io_failure_record() 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 | extent-tree.c | 66 int btrfs_add_excluded_extent(struct btrfs_fs_info *fs_info, in btrfs_add_excluded_extent() 77 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_free_excluded_extents() local 88 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len) in btrfs_lookup_data_extent() 117 struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_lookup_extent_info() 792 struct btrfs_fs_info *fs_info = trans->fs_info; in lookup_inline_extent_backref() local 986 void setup_inline_extent_backref(struct btrfs_fs_info *fs_info, in setup_inline_extent_backref() 1275 struct btrfs_fs_info *fs_info = dev->fs_info; in do_discard_extent() local 1312 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_discard_extent() 1380 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_inc_extent_ref() local 1561 struct btrfs_fs_info *fs_info = trans->fs_info; in run_delayed_extent_op() local [all …]
|
/linux-6.1.9/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 | 55 static int test_case_1(struct btrfs_fs_info *fs_info, in test_case_1() 145 static int test_case_2(struct btrfs_fs_info *fs_info, in test_case_2() 227 static int __test_case_3(struct btrfs_fs_info *fs_info, in __test_case_3() 310 static int test_case_3(struct btrfs_fs_info *fs_info, in test_case_3() 326 static int __test_case_4(struct btrfs_fs_info *fs_info, in __test_case_4() 432 static int test_case_4(struct btrfs_fs_info *fs_info, in test_case_4() 458 static int test_rmap_block(struct btrfs_fs_info *fs_info, in test_rmap_block() 555 struct btrfs_fs_info *fs_info = NULL; in btrfs_test_extent_map() local
|
D | btrfs-tests.c | 96 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() 119 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() local 152 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) in btrfs_free_dummy_fs_info() 213 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, in btrfs_alloc_dummy_block_group() 252 struct btrfs_fs_info *fs_info) in btrfs_init_dummy_trans()
|