| /linux/fs/btrfs/ |
| H A D | disk-io.c | 69 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local 156 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum() argument 178 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_repair_eb_io_failure() local 217 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_read_extent_buffer() local 261 struct btrfs_fs_info *fs_info = eb->fs_info; btree_csum_one_bio() local 334 struct btrfs_fs_info *fs_info = eb->fs_info; check_tree_block_fsid() local 361 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_validate_extent_buffer() local 536 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); btree_dirty_folio() local 593 btrfs_find_create_tree_block(struct btrfs_fs_info * fs_info,struct btrfs_eb_prealloc * pa,u64 bytenr,u64 owner_root,int level) btrfs_find_create_tree_block() argument 610 read_tree_block(struct btrfs_fs_info * fs_info,u64 bytenr,struct btrfs_tree_parent_check * check) read_tree_block() argument 633 btrfs_alloc_root(struct btrfs_fs_info * fs_info,u64 objectid,gfp_t flags) btrfs_alloc_root() argument 698 btrfs_alloc_dummy_root(struct btrfs_fs_info * fs_info) btrfs_alloc_dummy_root() argument 734 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_global_root_insert() local 752 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_global_root_delete() local 759 btrfs_global_root(struct btrfs_fs_info * fs_info,const struct btrfs_key * key) btrfs_global_root() argument 774 btrfs_global_root_id(struct btrfs_fs_info * fs_info,u64 bytenr) btrfs_global_root_id() argument 795 btrfs_csum_root(struct btrfs_fs_info * fs_info,u64 bytenr) btrfs_csum_root() argument 806 btrfs_extent_root(struct btrfs_fs_info * fs_info,u64 bytenr) btrfs_extent_root() argument 820 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_tree() local 884 alloc_log_tree(struct btrfs_fs_info * fs_info) alloc_log_tree() argument 928 btrfs_init_log_root_tree(struct btrfs_trans_handle * trans,struct btrfs_fs_info * fs_info) btrfs_init_log_root_tree() argument 953 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_log_tree() local 995 struct btrfs_fs_info *fs_info = tree_root->fs_info; read_tree_root_path() local 1118 btrfs_lookup_fs_root(struct btrfs_fs_info * fs_info,u64 root_id) btrfs_lookup_fs_root() argument 1131 btrfs_get_global_root(struct btrfs_fs_info * fs_info,u64 objectid) btrfs_get_global_root() argument 1168 btrfs_insert_fs_root(struct btrfs_fs_info * fs_info,struct btrfs_root * root) btrfs_insert_fs_root() argument 1191 btrfs_check_leaked_roots(const struct btrfs_fs_info * fs_info) btrfs_check_leaked_roots() argument 1212 free_global_roots(struct btrfs_fs_info * fs_info) free_global_roots() argument 1224 btrfs_free_fs_info(struct btrfs_fs_info * fs_info) btrfs_free_fs_info() argument 1279 btrfs_get_root_ref(struct btrfs_fs_info * fs_info,u64 objectid,dev_t * anon_dev,bool check_ref) btrfs_get_root_ref() argument 1383 btrfs_get_fs_root(struct btrfs_fs_info * fs_info,u64 objectid,bool check_ref) btrfs_get_fs_root() argument 1397 btrfs_get_new_fs_root(struct btrfs_fs_info * fs_info,u64 objectid,dev_t * anon_dev) btrfs_get_new_fs_root() argument 1418 btrfs_get_fs_root_commit_root(struct btrfs_fs_info * fs_info,struct btrfs_path * path,u64 objectid) btrfs_get_fs_root_commit_root() argument 1452 struct btrfs_fs_info *fs_info = arg; cleaner_kthread() local 1534 struct btrfs_fs_info *fs_info = root->fs_info; transaction_kthread() local 1725 read_backup_root(struct btrfs_fs_info * fs_info,u8 priority) read_backup_root() argument 1761 btrfs_stop_all_workers(struct btrfs_fs_info * fs_info) btrfs_stop_all_workers() argument 1798 free_global_root_pointers(struct btrfs_fs_info * fs_info) free_global_root_pointers() argument 1849 btrfs_free_fs_roots(struct btrfs_fs_info * fs_info) btrfs_free_fs_roots() argument 1876 btrfs_init_scrub(struct btrfs_fs_info * fs_info) btrfs_init_scrub() argument 1887 btrfs_init_balance(struct btrfs_fs_info * fs_info) btrfs_init_balance() argument 1900 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_init_btree_inode() local 1933 btrfs_init_dev_replace_locks(struct btrfs_fs_info * fs_info) btrfs_init_dev_replace_locks() argument 1940 btrfs_init_qgroup(struct btrfs_fs_info * fs_info) btrfs_init_qgroup() argument 1952 btrfs_init_workqueues(struct btrfs_fs_info * fs_info) btrfs_init_workqueues() argument 2009 btrfs_init_csum_hash(struct btrfs_fs_info * fs_info,u16 csum_type) btrfs_init_csum_hash() argument 2028 btrfs_replay_log(struct btrfs_fs_info * fs_info,struct btrfs_fs_devices * fs_devices) btrfs_replay_log() argument 2082 struct btrfs_fs_info *fs_info = tree_root->fs_info; load_global_roots_objectid() local 2184 btrfs_read_roots(struct btrfs_fs_info * fs_info) btrfs_read_roots() argument 2311 validate_sys_chunk_array(const struct btrfs_fs_info * fs_info,const struct btrfs_super_block * sb) validate_sys_chunk_array() argument 2395 btrfs_validate_super(const struct btrfs_fs_info * fs_info,const struct btrfs_super_block * sb,int mirror_num) btrfs_validate_super() argument 2603 btrfs_validate_mount_super(struct btrfs_fs_info * fs_info) btrfs_validate_mount_super() argument 2614 btrfs_validate_write_super(struct btrfs_fs_info * fs_info,struct btrfs_super_block * sb) btrfs_validate_write_super() argument 2665 load_important_roots(struct btrfs_fs_info * fs_info) load_important_roots() argument 2694 init_tree_roots(struct btrfs_fs_info * fs_info) init_tree_roots() argument 2776 btrfs_init_fs_info(struct btrfs_fs_info * fs_info) btrfs_init_fs_info() argument 2921 init_mount_fs_info(struct btrfs_fs_info * fs_info,struct super_block * sb) init_mount_fs_info() argument 2970 struct btrfs_fs_info *fs_info = data; btrfs_uuid_rescan_kthread() local 2989 btrfs_check_uuid_tree(struct btrfs_fs_info * fs_info) btrfs_check_uuid_tree() argument 3004 btrfs_cleanup_fs_roots(struct btrfs_fs_info * fs_info) btrfs_cleanup_fs_roots() argument 3059 btrfs_start_pre_rw_mount(struct btrfs_fs_info * fs_info) btrfs_start_pre_rw_mount() argument 3203 btrfs_check_features(struct btrfs_fs_info * fs_info,bool is_rw_mount) btrfs_check_features() argument 3301 invalidate_and_check_btree_folios(struct btrfs_fs_info * fs_info) invalidate_and_check_btree_folios() argument 3373 struct btrfs_fs_info *fs_info = btrfs_sb(sb); open_ctree() local 3872 struct btrfs_fs_info *fs_info = device->fs_info; write_dev_supers() local 4135 struct btrfs_fs_info *fs_info = trans->fs_info; write_all_supers() local 4248 btrfs_drop_and_free_fs_root(struct btrfs_fs_info * fs_info,struct btrfs_root * root) btrfs_drop_and_free_fs_root() argument 4272 btrfs_commit_super(struct btrfs_fs_info * fs_info) btrfs_commit_super() argument 4286 warn_about_uncommitted_trans(struct btrfs_fs_info * fs_info) warn_about_uncommitted_trans() argument 4325 close_ctree(struct btrfs_fs_info * fs_info) close_ctree() argument 4609 struct btrfs_fs_info *fs_info = buf->fs_info; btrfs_mark_buffer_dirty() local 4633 __btrfs_btree_balance_dirty(struct btrfs_fs_info * fs_info,int flush_delayed) __btrfs_btree_balance_dirty() argument 4656 btrfs_btree_balance_dirty(struct btrfs_fs_info * fs_info) btrfs_btree_balance_dirty() argument 4661 btrfs_btree_balance_dirty_nodelay(struct btrfs_fs_info * fs_info) btrfs_btree_balance_dirty_nodelay() argument 4666 btrfs_error_commit_super(struct btrfs_fs_info * fs_info) btrfs_error_commit_super() argument 4675 btrfs_drop_all_logs(struct btrfs_fs_info * fs_info) btrfs_drop_all_logs() argument 4720 btrfs_destroy_all_ordered_extents(struct btrfs_fs_info * fs_info) btrfs_destroy_all_ordered_extents() argument 4783 btrfs_destroy_all_delalloc_inodes(struct btrfs_fs_info * fs_info) btrfs_destroy_all_delalloc_inodes() argument 4805 btrfs_destroy_marked_extents(struct btrfs_fs_info * fs_info,struct extent_io_tree * dirty_pages,int mark) btrfs_destroy_marked_extents() argument 4833 btrfs_destroy_pinned_extent(struct btrfs_fs_info * fs_info,struct extent_io_tree * unpin) btrfs_destroy_pinned_extent() argument 4884 btrfs_cleanup_dirty_bgs(struct btrfs_transaction * cur_trans,struct btrfs_fs_info * fs_info) btrfs_cleanup_dirty_bgs() argument 4930 btrfs_free_all_qgroup_pertrans(struct btrfs_fs_info * fs_info) btrfs_free_all_qgroup_pertrans() argument 4958 struct btrfs_fs_info *fs_info = cur_trans->fs_info; btrfs_cleanup_one_transaction() local 4986 btrfs_cleanup_transaction(struct btrfs_fs_info * fs_info) btrfs_cleanup_transaction() argument [all...] |
| H A D | messages.h | 18 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_no_printk() 31 #define btrfs_printk_in_rcu(fs_info, level, fmt, args...) \ argument 34 #define btrfs_printk_rl_in_rcu(fs_info, level, fmt, args...) \ argument 42 #define btrfs_crit(fs_info, fmt, args...) \ argument 44 #define btrfs_err(fs_info, fmt, args...) \ argument 46 #define btrfs_warn(fs_info, fmt, args...) \ argument 48 #define btrfs_info(fs_info, fmt, args...) \ argument 54 #define btrfs_crit_rl(fs_info, fmt, args...) \ argument 56 #define btrfs_err_rl(fs_info, fmt, args...) \ argument 58 #define btrfs_warn_rl(fs_info, fmt, args...) \ argument [all …]
|
| H A D | transaction.c | 183 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local 257 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local 270 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 413 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() local 484 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() local 503 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() local 536 static void wait_current_trans(struct btrfs_fs_info *fs_info, unsigned int type) in wait_current_trans() 557 static bool may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 570 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() local 581 static int btrfs_reserve_trans_metadata(struct btrfs_fs_info *fs_info, in btrfs_reserve_trans_metadata() [all …]
|
| H A D | subpage.c | 38 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_attach_folio_state() 70 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio, in btrfs_detach_folio_state() 88 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_alloc_folio_state() 121 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_inc_eb_refs() 135 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_dec_eb_refs() 150 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert() 168 #define subpage_calc_start_bit(fs_info, folio, name, start, len) \ argument 196 static bool btrfs_subpage_end_and_test_lock(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_and_test_lock() 242 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock() 272 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock_bitmap() [all …]
|
| H A D | dev-replace.c | 70 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() argument 232 btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info * fs_info,const char * device_path,struct btrfs_device * srcdev,struct btrfs_device ** device_out) btrfs_init_dev_replace_tgtdev() argument 341 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_dev_replace() local 441 mark_block_group_to_copy(struct btrfs_fs_info * fs_info,struct btrfs_device * src_dev) mark_block_group_to_copy() argument 539 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_finish_block_group_to_copy() local 587 btrfs_dev_replace_start(struct btrfs_fs_info * fs_info,const char * tgtdev_name,u64 srcdevid,const char * srcdev_name,int read_src) btrfs_dev_replace_start() argument 744 btrfs_dev_replace_by_ioctl(struct btrfs_fs_info * fs_info,struct btrfs_ioctl_dev_replace_args * args) btrfs_dev_replace_by_ioctl() argument 776 btrfs_rm_dev_replace_blocked(struct btrfs_fs_info * fs_info) btrfs_rm_dev_replace_blocked() argument 786 btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info * fs_info) btrfs_rm_dev_replace_unblocked() argument 824 btrfs_dev_replace_update_device_in_mapping_tree(struct btrfs_fs_info * fs_info,struct btrfs_device * srcdev,struct btrfs_device * tgtdev) btrfs_dev_replace_update_device_in_mapping_tree() argument 870 btrfs_dev_replace_finishing(struct btrfs_fs_info * fs_info,int scrub_ret) btrfs_dev_replace_finishing() argument 1059 btrfs_dev_replace_progress(struct btrfs_fs_info * fs_info) btrfs_dev_replace_progress() argument 1083 btrfs_dev_replace_status(struct btrfs_fs_info * fs_info,struct btrfs_ioctl_dev_replace_args * args) btrfs_dev_replace_status() argument 1103 btrfs_dev_replace_cancel(struct btrfs_fs_info * fs_info) btrfs_dev_replace_cancel() argument 1190 btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info * fs_info) btrfs_dev_replace_suspend_for_unmount() argument 1222 btrfs_resume_dev_replace_async(struct btrfs_fs_info * fs_info) btrfs_resume_dev_replace_async() argument 1301 struct btrfs_fs_info *fs_info = data; btrfs_dev_replace_kthread() local 1353 btrfs_bio_counter_sub(struct btrfs_fs_info * fs_info,s64 amount) btrfs_bio_counter_sub() argument 1359 btrfs_bio_counter_inc_blocked(struct btrfs_fs_info * fs_info) btrfs_bio_counter_inc_blocked() argument [all...] |
| H A D | qgroup.c | 33 enum btrfs_qgroup_mode btrfs_qgroup_mode(const struct btrfs_fs_info *fs_info) in btrfs_qgroup_mode() 42 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info) in btrfs_qgroup_enabled() 47 bool btrfs_qgroup_full_accounting(const struct btrfs_fs_info *fs_info) in btrfs_qgroup_full_accounting() 82 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() 90 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() 108 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() 118 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() 177 static struct btrfs_qgroup *find_qgroup_rb(const struct btrfs_fs_info *fs_info, in find_qgroup_rb() 201 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info, in add_qgroup_rb() 249 static int del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) in del_qgroup_rb() [all …]
|
| H A D | block-rsv.c | 104 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() 242 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill() 270 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() 322 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv() 417 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() local 447 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() [all …]
|
| H A D | block-group.c | 56 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() local 84 static u64 get_restripe_target(const struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target() argument 113 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile() argument 162 btrfs_get_alloc_profile(struct btrfs_fs_info * fs_info,u64 orig_flags) btrfs_get_alloc_profile() argument 237 struct btrfs_fs_info *fs_info = block_group->fs_info; btrfs_add_block_group_cache() local 316 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_next_block_group() local 355 btrfs_inc_nocow_writers(struct btrfs_fs_info * fs_info,u64 bytenr) btrfs_inc_nocow_writers() argument 406 btrfs_dec_block_group_reservations(struct btrfs_fs_info * fs_info,const u64 start) btrfs_dec_block_group_reservations() argument 527 struct btrfs_fs_info *fs_info = block_group->fs_info; fragment_free_space() local 624 struct btrfs_fs_info *fs_info = block_group->fs_info; sample_block_group_extent_item() local 708 struct btrfs_fs_info *fs_info = block_group->fs_info; load_block_group_size_class() local 753 struct btrfs_fs_info *fs_info = block_group->fs_info; load_extent_tree_free() local 895 struct btrfs_fs_info *fs_info; caching_thread() local 968 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_cache_block_group() local 1027 clear_avail_alloc_bits(struct btrfs_fs_info * fs_info,u64 flags) clear_avail_alloc_bits() argument 1050 clear_incompat_bg_bits(struct btrfs_fs_info * fs_info,u64 flags) clear_incompat_bg_bits() argument 1080 btrfs_block_group_root(struct btrfs_fs_info * fs_info) btrfs_block_group_root() argument 1091 struct btrfs_fs_info *fs_info = trans->fs_info; remove_block_group_item() local 1136 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_block_group() local 1384 btrfs_start_trans_remove_block_group(struct btrfs_fs_info * fs_info,const u64 chunk_offset) btrfs_start_trans_remove_block_group() argument 1510 struct btrfs_fs_info *fs_info = trans->fs_info; clean_pinned_extents() local 1564 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_link_bg_list() local 1581 btrfs_delete_unused_bgs(struct btrfs_fs_info * fs_info) btrfs_delete_unused_bgs() argument 1866 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_mark_bg_unused() local 1906 btrfs_should_reclaim(const struct btrfs_fs_info * fs_info) btrfs_should_reclaim() argument 1942 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_reclaim_block_group() local 2078 btrfs_reclaim_block_groups(struct btrfs_fs_info * fs_info,unsigned int limit) btrfs_reclaim_block_groups() argument 2153 struct btrfs_fs_info *fs_info = btrfs_reclaim_bgs_work() local 2159 btrfs_reclaim_bgs(struct btrfs_fs_info * fs_info) btrfs_reclaim_bgs() argument 2170 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_mark_bg_to_reclaim() local 2176 read_bg_from_eb(struct btrfs_fs_info * fs_info,const struct btrfs_key * key,const struct btrfs_path * path) read_bg_from_eb() argument 2223 find_first_block_group(struct btrfs_fs_info * fs_info,struct btrfs_path * path,const struct btrfs_key * key) find_first_block_group() argument 2245 set_avail_alloc_bits(struct btrfs_fs_info * fs_info,u64 flags) set_avail_alloc_bits() argument 2274 btrfs_rmap_block(struct btrfs_fs_info * fs_info,u64 chunk_start,u64 physical,u64 ** logical,int * naddrs,int * stripe_len) btrfs_rmap_block() argument 2351 struct btrfs_fs_info *fs_info = cache->fs_info; exclude_super_stripes() local 2404 btrfs_create_block_group(struct btrfs_fs_info * fs_info,u64 start) btrfs_create_block_group() argument 2447 check_chunk_block_group_mappings(struct btrfs_fs_info * fs_info) check_chunk_block_group_mappings() argument 2615 fill_dummy_bgs(struct btrfs_fs_info * fs_info) fill_dummy_bgs() argument 2793 struct btrfs_fs_info *fs_info = trans->fs_info; insert_block_group_item() local 2841 struct btrfs_fs_info *fs_info = device->fs_info; insert_dev_extent() local 2882 struct btrfs_fs_info *fs_info = trans->fs_info; insert_dev_extents() local 2927 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_pending_block_groups() local 3016 calculate_global_root_id(const struct btrfs_fs_info * fs_info,u64 offset) calculate_global_root_id() argument 3037 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_make_block_group() local 3133 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_inc_block_group_ro() local 3278 struct btrfs_fs_info *fs_info = trans->fs_info; update_block_group_item() local 3376 struct btrfs_fs_info *fs_info = block_group->fs_info; cache_save_setup() local 3540 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_setup_space_cache() local 3577 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_start_dirty_block_groups() local 3742 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_write_dirty_block_groups() local 4093 should_alloc_chunk(const struct btrfs_fs_info * fs_info,const struct btrfs_space_info * sinfo,int force) should_alloc_chunk() argument 4350 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_chunk_alloc() local 4485 get_profile_num_devs(const struct btrfs_fs_info * fs_info,u64 type) get_profile_num_devs() argument 4500 struct btrfs_fs_info *fs_info = trans->fs_info; reserve_chunk_space() local 4581 struct btrfs_fs_info *fs_info = trans->fs_info; check_system_chunk() local 4611 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_reserve_chunk_metadata() local 4806 struct btrfs_fs_info *fs_info = block_group->fs_info; btrfs_unfreeze_block_group() local 4932 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_mark_bg_fully_remapped() local 4968 btrfs_populate_fully_remapped_bgs_list(struct btrfs_fs_info * fs_info) btrfs_populate_fully_remapped_bgs_list() argument [all...] |
| H A D | super.c | 73 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_put_super() local 660 static void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info) in btrfs_clear_oneshot_options() argument 666 static bool check_ro_option(const struct btrfs_fs_info *fs_info, in check_ro_option() argument 730 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info) in btrfs_set_free_space_cache_settings() argument 770 set_device_specific_options(struct btrfs_fs_info * fs_info) set_device_specific_options() argument 793 btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info * fs_info,u64 subvol_objectid) btrfs_get_subvol_name_from_objectid() argument 911 get_default_subvol_objectid(struct btrfs_fs_info * fs_info,u64 * objectid) get_default_subvol_objectid() argument 953 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_fill_super() local 1006 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_sync_fs() local 1195 struct btrfs_fs_info *fs_info = btrfs_sb(s); mount_subvol() local 1229 btrfs_resize_thread_pool(struct btrfs_fs_info * fs_info,u32 new_pool_size,u32 old_pool_size) btrfs_resize_thread_pool() argument 1250 btrfs_remount_begin(struct btrfs_fs_info * fs_info,unsigned long long old_opts,int flags) btrfs_remount_begin() argument 1264 btrfs_remount_cleanup(struct btrfs_fs_info * fs_info,unsigned long long old_opts) btrfs_remount_cleanup() argument 1291 btrfs_remount_rw(struct btrfs_fs_info * fs_info) btrfs_remount_rw() argument 1338 btrfs_remount_ro(struct btrfs_fs_info * fs_info) btrfs_remount_ro() argument 1400 btrfs_ctx_to_info(struct btrfs_fs_info * fs_info,struct btrfs_fs_context * ctx) btrfs_ctx_to_info() argument 1411 btrfs_info_to_ctx(struct btrfs_fs_info * fs_info,struct btrfs_fs_context * ctx) btrfs_info_to_ctx() argument 1422 btrfs_info_if_set(fs_info,old_ctx,opt,fmt,args...) global() argument 1429 btrfs_info_if_unset(fs_info,old_ctx,opt,fmt,args...) global() argument 1495 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_reconfigure() local 1603 btrfs_calc_avail_data_space(struct btrfs_fs_info * fs_info,u64 * free_bytes) btrfs_calc_avail_data_space() argument 1722 struct btrfs_fs_info *fs_info = btrfs_sb(dentry->d_sb); btrfs_statfs() local 1856 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_fc_test_super() local 1863 struct btrfs_fs_info *fs_info = fc->s_fs_info; btrfs_get_tree_super() local 2063 struct btrfs_fs_info *fs_info = NULL; btrfs_get_tree_subvol() local 2147 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_kill_super() local 2155 struct btrfs_fs_info *fs_info = fc->s_fs_info; btrfs_free_fs_context() local 2313 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_freeze() local 2327 struct btrfs_fs_info *fs_info = dev->fs_info; check_dev_super() local 2379 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_unfreeze() local 2412 struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb); btrfs_show_devname() local 2428 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_nr_cached_objects() local 2448 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_free_cached_objects() local 2458 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_remove_bdev() local 2509 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_shutdown() local 2516 struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb); btrfs_show_stats() local [all...] |
| H A D | ref-verify.h | 26 static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) in btrfs_init_ref_verify() 32 static inline int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info) in btrfs_build_ref_tree() 37 static inline void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info) in btrfs_free_ref_cache() 41 static inline int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, in btrfs_ref_tree_mod() 47 static inline void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, in btrfs_free_ref_tree_range() 52 static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) in btrfs_init_ref_verify()
|
| H A D | space-info.c | 220 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size() 272 struct btrfs_fs_info *fs_info = parent->fs_info; in create_space_info_sub_group() local 336 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 430 static u64 calc_effective_data_chunk_size(const struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size() 455 struct btrfs_fs_info *fs_info = space_info->fs_info; in calc_available_free_space() local 626 #define DUMP_BLOCK_RSV(fs_info, rsv_name) \ argument 635 static void dump_global_block_rsv(struct btrfs_fs_info *fs_info) in dump_global_block_rsv() 647 const struct btrfs_fs_info *fs_info = info->fs_info; in __btrfs_dump_space_info() local 667 struct btrfs_fs_info *fs_info = info->fs_info; in btrfs_dump_space_info() local 704 static inline u64 calc_reclaim_items_nr(const struct btrfs_fs_info *fs_info, in calc_reclaim_items_nr() [all …]
|
| H A D | fs.c | 177 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start() 203 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock() 216 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock() 221 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish() 229 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance() 254 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat() 277 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat() 300 void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_compat_ro() 323 void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_compat_ro()
|
| H A D | sysfs.c | 121 static u64 get_features(struct btrfs_fs_info *fs_info, in get_features() 133 static void set_features(struct btrfs_fs_info *fs_info, in set_features() 179 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_attr_show() local 195 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store() local 262 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible() local 475 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show() local 486 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show() local 497 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show() local 508 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show() local 519 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_extent_bytes_show() local [all …]
|
| H A D | scrub.c | 188 struct btrfs_fs_info *fs_info; member 346 static int init_scrub_stripe(struct btrfs_fs_info *fs_info, in init_scrub_stripe() 385 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() 395 static void scrub_pause_on(struct btrfs_fs_info *fs_info) in scrub_pause_on() 401 static void scrub_pause_off(struct btrfs_fs_info *fs_info) in scrub_pause_off() 411 static void scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in scrub_blocked_if_needed() 437 struct btrfs_fs_info *fs_info, bool is_dev_replace) in scrub_setup_ctx() 492 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode() local 573 struct btrfs_fs_info *fs_info = dev->fs_info; in scrub_print_common_warning() local 675 static void scrub_calc_vaddr_csum(struct btrfs_fs_info *fs_info, in scrub_calc_vaddr_csum() [all …]
|
| H A D | volumes.c | 1807 struct btrfs_fs_info *fs_info = device->fs_info; find_free_dev_extent() local 1948 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_free_dev_extent() local 1996 find_next_chunk(struct btrfs_fs_info * fs_info) find_next_chunk() argument 2014 find_next_devid(struct btrfs_fs_info * fs_info,u64 * devid_ret) find_next_devid() argument 2165 btrfs_check_raid_min_devices(struct btrfs_fs_info * fs_info,u64 num_devices) btrfs_check_raid_min_devices() argument 2215 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_assign_next_active_device() local 2234 btrfs_num_devices(struct btrfs_fs_info * fs_info) btrfs_num_devices() argument 2248 btrfs_scratch_superblock(struct btrfs_fs_info * fs_info,struct block_device * bdev,int copy_num) btrfs_scratch_superblock() argument 2270 btrfs_scratch_superblocks(struct btrfs_fs_info * fs_info,struct btrfs_device * device) btrfs_scratch_superblocks() argument 2295 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_dev_stat_item() local 2324 btrfs_rm_device(struct btrfs_fs_info * fs_info,struct btrfs_dev_lookup_args * args,struct file ** bdev_file) btrfs_rm_device() argument 2613 btrfs_get_dev_args_from_path(struct btrfs_fs_info * fs_info,struct btrfs_dev_lookup_args * args,const char * path) btrfs_get_dev_args_from_path() argument 2667 btrfs_find_device_by_devspec(struct btrfs_fs_info * fs_info,u64 devid,const char * device_path) btrfs_find_device_by_devspec() argument 2692 btrfs_init_sprout(struct btrfs_fs_info * fs_info) btrfs_init_sprout() argument 2737 btrfs_setup_sprout(struct btrfs_fs_info * fs_info,struct btrfs_fs_devices * seed_devices) btrfs_setup_sprout() argument 2792 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_finish_sprout() local 2890 btrfs_init_new_device(struct btrfs_fs_info * fs_info,const char * device_path) btrfs_init_new_device() argument 3198 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_grow_device() local 3242 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_free_chunk() local 3276 btrfs_del_sys_chunk(struct btrfs_fs_info * fs_info,u64 chunk_offset) btrfs_del_sys_chunk() argument 3322 btrfs_find_chunk_map_nolock(struct btrfs_fs_info * fs_info,u64 logical,u64 length) btrfs_find_chunk_map_nolock() argument 3385 btrfs_find_chunk_map(struct btrfs_fs_info * fs_info,u64 logical,u64 length) btrfs_find_chunk_map() argument 3405 btrfs_get_chunk_map(struct btrfs_fs_info * fs_info,u64 logical,u64 length) btrfs_get_chunk_map() argument 3457 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_dev_extents() local 3506 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_chunk() local 3632 btrfs_relocate_chunk_finish(struct btrfs_fs_info * fs_info,struct btrfs_block_group * bg) btrfs_relocate_chunk_finish() argument 3671 btrfs_relocate_chunk(struct btrfs_fs_info * fs_info,u64 chunk_offset,bool verbose) btrfs_relocate_chunk() argument 3725 btrfs_relocate_sys_chunks(struct btrfs_fs_info * fs_info) btrfs_relocate_sys_chunks() argument 3813 btrfs_may_alloc_data_chunk(struct btrfs_fs_info * fs_info,u64 chunk_offset) btrfs_may_alloc_data_chunk() argument 3892 insert_balance_item(struct btrfs_fs_info * fs_info,struct btrfs_balance_control * bctl) insert_balance_item() argument 3945 del_balance_item(struct btrfs_fs_info * fs_info) del_balance_item() argument 4032 reset_balance_state(struct btrfs_fs_info * fs_info) reset_balance_state() argument 4064 chunk_usage_range_filter(struct btrfs_fs_info * fs_info,u64 chunk_offset,struct btrfs_balance_args * bargs) chunk_usage_range_filter() argument 4100 chunk_usage_filter(struct btrfs_fs_info * fs_info,u64 chunk_offset,struct btrfs_balance_args * bargs) chunk_usage_filter() argument 4231 struct btrfs_fs_info *fs_info = leaf->fs_info; should_balance_chunk() local 4342 struct btrfs_fs_info *fs_info = trans->fs_info; cow_remap_tree() local 4371 balance_remap_chunks(struct btrfs_fs_info * fs_info,struct btrfs_path * path,struct list_head * chunks) balance_remap_chunks() argument 4443 __btrfs_balance(struct btrfs_fs_info * fs_info) __btrfs_balance() argument 4716 validate_convert_profile(struct btrfs_fs_info * fs_info,const struct btrfs_balance_args * bargs,u64 allowed,const char * type) validate_convert_profile() argument 4831 describe_balance_start_or_resume(struct btrfs_fs_info * fs_info) describe_balance_start_or_resume() argument 4888 btrfs_balance(struct btrfs_fs_info * fs_info,struct btrfs_balance_control * bctl,struct btrfs_ioctl_balance_args * bargs) btrfs_balance() argument 5080 struct btrfs_fs_info *fs_info = data; balance_kthread() local 5093 btrfs_resume_balance_async(struct btrfs_fs_info * fs_info) btrfs_resume_balance_async() argument 5127 btrfs_recover_balance(struct btrfs_fs_info * fs_info) btrfs_recover_balance() argument 5194 btrfs_pause_balance(struct btrfs_fs_info * fs_info) btrfs_pause_balance() argument 5223 btrfs_cancel_balance(struct btrfs_fs_info * fs_info) btrfs_cancel_balance() argument 5279 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_shrink_device() local 5482 btrfs_add_system_chunk(struct btrfs_fs_info * fs_info,struct btrfs_key * key,struct btrfs_chunk * chunk,int item_size) btrfs_add_system_chunk() argument 5542 alloc_virtual_chunk(struct btrfs_fs_info * fs_info,struct btrfs_device_info * devices_info,enum btrfs_raid_types type,u64 * allocated) alloc_virtual_chunk() argument 5619 calc_one_profile_avail(struct btrfs_fs_info * fs_info,enum btrfs_raid_types type,u64 * result_ret) calc_one_profile_avail() argument 5660 btrfs_update_per_profile_avail(struct btrfs_fs_info * fs_info) btrfs_update_per_profile_avail() argument 6041 btrfs_remove_chunk_map(struct btrfs_fs_info * fs_info,struct btrfs_chunk_map * map) btrfs_remove_chunk_map() argument 6069 btrfs_add_chunk_map(struct btrfs_fs_info * fs_info,struct btrfs_chunk_map * map) btrfs_add_chunk_map() argument 6244 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_chunk_alloc_add_chunk_item() local 6347 struct btrfs_fs_info *fs_info = trans->fs_info; init_first_rw_device() local 6405 btrfs_chunk_writeable(struct btrfs_fs_info * fs_info,u64 chunk_offset) btrfs_chunk_writeable() argument 6440 btrfs_mapping_tree_free(struct btrfs_fs_info * fs_info) btrfs_mapping_tree_free() argument 6480 btrfs_num_copies(struct btrfs_fs_info * fs_info,u64 logical,u64 len) btrfs_num_copies() argument 6500 btrfs_full_stripe_len(struct btrfs_fs_info * fs_info,u64 logical) btrfs_full_stripe_len() argument 6567 struct btrfs_fs_info *fs_info = device->fs_devices->fs_info; btrfs_read_rr() local 6589 find_live_mirror(struct btrfs_fs_info * fs_info,struct btrfs_chunk_map * map,int first,bool dev_replace_is_ongoing) find_live_mirror() argument 6658 alloc_btrfs_io_context(struct btrfs_fs_info * fs_info,u64 logical,u16 total_stripes) alloc_btrfs_io_context() argument 6696 btrfs_map_discard(struct btrfs_fs_info * fs_info,u64 logical,u64 * length_ret,u32 * num_stripes,bool do_remap) btrfs_map_discard() argument 6851 is_block_group_to_copy(struct btrfs_fs_info * fs_info,u64 logical) is_block_group_to_copy() argument 6996 set_io_stripe(struct btrfs_fs_info * fs_info,u64 logical,u64 * length,struct btrfs_io_stripe * dst,struct btrfs_chunk_map * map,struct btrfs_io_geometry * io_geom) set_io_stripe() argument 7014 is_single_device_io(struct btrfs_fs_info * fs_info,const struct btrfs_io_stripe * smap,const struct btrfs_chunk_map * map,int num_alloc_stripes,struct btrfs_io_geometry * io_geom) is_single_device_io() argument 7044 map_blocks_raid1(struct btrfs_fs_info * fs_info,struct btrfs_chunk_map * map,struct btrfs_io_geometry * io_geom,bool dev_replace_is_ongoing) map_blocks_raid1() argument 7080 map_blocks_raid10(struct btrfs_fs_info * fs_info,struct btrfs_chunk_map * map,struct btrfs_io_geometry * io_geom,bool dev_replace_is_ongoing) map_blocks_raid10() argument 7200 btrfs_map_block(struct btrfs_fs_info * fs_info,enum btrfs_map_op op,u64 logical,u64 * length,struct btrfs_io_context ** bioc_ret,struct btrfs_io_stripe * smap,int * mirror_num_ret) btrfs_map_block() argument 7519 btrfs_alloc_device(struct btrfs_fs_info * fs_info,const u64 * devid,const u8 * uuid,const char * path) btrfs_alloc_device() argument 7573 btrfs_report_missing_device(struct btrfs_fs_info * fs_info,u64 devid,u8 * uuid,bool error) btrfs_report_missing_device() argument 7599 check_32bit_meta_chunk(struct btrfs_fs_info * fs_info,u64 logical,u64 length,u64 type) check_32bit_meta_chunk() argument 7618 warn_32bit_meta_chunk(struct btrfs_fs_info * fs_info,u64 logical,u64 length,u64 type) warn_32bit_meta_chunk() argument 7631 handle_missing_device(struct btrfs_fs_info * fs_info,u64 devid,u8 * uuid) handle_missing_device() argument 7656 struct btrfs_fs_info *fs_info = leaf->fs_info; read_one_chunk() local 7774 open_seed_devices(struct btrfs_fs_info * fs_info,u8 * fsid) open_seed_devices() argument 7837 struct btrfs_fs_info *fs_info = leaf->fs_info; read_one_dev() local 7944 btrfs_read_sys_array(struct btrfs_fs_info * fs_info) btrfs_read_sys_array() argument 8021 btrfs_check_rw_degradable(struct btrfs_fs_info * fs_info,struct btrfs_device * failing_dev) btrfs_check_rw_degradable() argument 8077 btrfs_read_chunk_tree(struct btrfs_fs_info * fs_info) btrfs_read_chunk_tree() argument 8200 btrfs_init_devices_late(struct btrfs_fs_info * fs_info) btrfs_init_devices_late() argument 8292 btrfs_init_dev_stats(struct btrfs_fs_info * fs_info) btrfs_init_dev_stats() argument 8321 btrfs_init_writeback_bio_size(struct btrfs_fs_info * fs_info) btrfs_init_writeback_bio_size() argument 8355 struct btrfs_fs_info *fs_info = trans->fs_info; update_dev_stat_item() local 8418 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_dev_stats() local 8520 btrfs_get_dev_stats(struct btrfs_fs_info * fs_info,struct btrfs_ioctl_get_dev_stats * stats) btrfs_get_dev_stats() argument 8600 verify_one_dev_extent(struct btrfs_fs_info * fs_info,u64 chunk_offset,u64 devid,u64 physical_offset,u64 physical_len) verify_one_dev_extent() argument 8698 verify_chunk_dev_extent_mapping(struct btrfs_fs_info * fs_info) verify_chunk_dev_extent_mapping() argument 8728 btrfs_verify_dev_extents(struct btrfs_fs_info * fs_info) btrfs_verify_dev_extents() argument 8832 btrfs_verify_dev_items(const struct btrfs_fs_info * fs_info) btrfs_verify_dev_items() argument 8873 btrfs_pinned_by_swapfile(struct btrfs_fs_info * fs_info,void * ptr) btrfs_pinned_by_swapfile() argument 8896 struct btrfs_fs_info *fs_info = cache->fs_info; relocating_repair_kthread() local 8940 btrfs_repair_one_zone(struct btrfs_fs_info * fs_info,u64 logical) btrfs_repair_one_zone() argument 9001 btrfs_map_repair_block(struct btrfs_fs_info * fs_info,struct btrfs_io_stripe * smap,u64 logical,u32 length,int mirror_num) btrfs_map_repair_block() argument [all...] |
| H A D | relocation.c | 185 static struct reloc_control *get_reloc_control(struct btrfs_fs_info *fs_info) in get_reloc_control() 236 struct btrfs_fs_info *fs_info = root->fs_info; in __del_reloc_root() local 400 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() 574 struct btrfs_fs_info *fs_info = root->fs_info; in __add_reloc_root() local 606 struct btrfs_fs_info *fs_info = root->fs_info; in __update_reloc_root() local 636 struct btrfs_fs_info *fs_info = root->fs_info; in create_reloc_root() local 749 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_reloc_root() local 820 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_update_reloc_root() local 874 struct btrfs_fs_info *fs_info = root->fs_info; in get_new_location() local 938 struct btrfs_fs_info *fs_info = root->fs_info; in replace_file_extents() local [all …]
|
| H A D | ioctl.c | 246 static int check_fsflags_compatible(const struct btrfs_fs_info *fs_info, in check_fsflags_compatible() 286 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_fileattr_set() local 462 static noinline int btrfs_ioctl_fitrim(struct btrfs_fs_info *fs_info, in btrfs_ioctl_fitrim() 556 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in create_subvol() local 761 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in create_snapshot() local 888 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in btrfs_mksubvol() local 975 static int exclop_start_or_cancel_reloc(struct btrfs_fs_info *fs_info, in exclop_start_or_cancel_reloc() 1012 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_ioctl_resize() local 1273 struct btrfs_fs_info *fs_info = inode_to_fs_info(file_inode(file)); in btrfs_ioctl_snap_create_v2() local 1296 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_ioctl_subvol_getflags() local [all …]
|
| H A D | zoned.c | 296 static int calculate_emulated_zone_size(struct btrfs_fs_info *fs_info) in calculate_emulated_zone_size() argument 332 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices() argument 383 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_get_dev_zone_info() local 692 btrfs_check_for_zoned_device(struct btrfs_fs_info * fs_info) btrfs_check_for_zoned_device() argument 708 btrfs_check_zoned_mode(struct btrfs_fs_info * fs_info) btrfs_check_zoned_mode() argument 1247 struct btrfs_fs_info *fs_info = cache->fs_info; calculate_alloc_pointer() local 1324 btrfs_load_zone_info(struct btrfs_fs_info * fs_info,int zone_idx,struct zone_info * info,unsigned long * active,struct btrfs_chunk_map * map,bool new) btrfs_load_zone_info() argument 1456 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_load_block_group_dup() local 1521 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_load_block_group_raid1() local 1587 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_load_block_group_raid0() local 1705 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_load_block_group_raid10() local 1856 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_load_block_group_by_raid_type() local 1908 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_load_block_group_zone_info() local 2045 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_use_zone_append() local 2130 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_finish_ordered_zoned() local 2196 struct btrfs_fs_info *fs_info = block_group->fs_info; check_bg_is_active() local 2259 btrfs_check_meta_write_pointer(struct btrfs_fs_info * fs_info,struct btrfs_eb_write_context * ctx) btrfs_check_meta_write_pointer() argument 2321 read_zone_info(struct btrfs_fs_info * fs_info,u64 logical,struct blk_zone * zone) read_zone_info() argument 2372 struct btrfs_fs_info *fs_info = tgt_dev->fs_info; btrfs_sync_zone_write_pointer() local 2406 struct btrfs_fs_info *fs_info = block_group->fs_info; btrfs_zone_activate() local 2493 struct btrfs_fs_info *fs_info = block_group->fs_info; wait_eb_writebacks() local 2547 struct btrfs_fs_info *fs_info = block_group->fs_info; do_zone_finish() local 2661 struct btrfs_fs_info *fs_info = fs_devices->fs_info; btrfs_can_activate_zone() local 2709 btrfs_zone_finish_endio(struct btrfs_fs_info * fs_info,u64 logical,u64 length) btrfs_zone_finish_endio() argument 2778 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_clear_data_reloc_bg() local 2786 btrfs_zoned_reserve_data_reloc_bg(struct btrfs_fs_info * fs_info) btrfs_zoned_reserve_data_reloc_bg() argument 2877 btrfs_free_zone_cache(struct btrfs_fs_info * fs_info) btrfs_free_zone_cache() argument 2895 btrfs_zoned_should_reclaim(const struct btrfs_fs_info * fs_info) btrfs_zoned_should_reclaim() argument 2921 btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info * fs_info,u64 logical,u64 length) btrfs_zoned_release_data_reloc_bg() argument 2952 btrfs_zone_finish_one_bg(struct btrfs_fs_info * fs_info) btrfs_zone_finish_one_bg() argument 2995 struct btrfs_fs_info *fs_info = space_info->fs_info; btrfs_zoned_activate_one_bg() local 3047 btrfs_check_active_zone_reservation(struct btrfs_fs_info * fs_info) btrfs_check_active_zone_reservation() argument 3112 struct btrfs_fs_info *fs_info = space_info->fs_info; btrfs_reset_unused_block_groups() local 3231 btrfs_show_zoned_stats(struct btrfs_fs_info * fs_info,struct seq_file * seq) btrfs_show_zoned_stats() argument [all...] |
| H A D | extent_io.c | 45 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb() local 55 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb() local 63 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info) in btrfs_extent_buffer_leak_debug_check() 246 static void process_one_folio(struct btrfs_fs_info *fs_info, in process_one_folio() 270 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in __process_folios_contig() local 326 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in lock_delalloc_folios() local 395 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in find_lock_delalloc_range() local 503 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in btrfs_verify_folio() local 513 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in end_folio_read() local 541 struct btrfs_fs_info *fs_info = bbio->inode->root->fs_info; in end_bbio_data_write() local [all …]
|
| H A D | extent-tree.c | 72 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len) in btrfs_lookup_data_extent() 104 struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_lookup_extent_info() 349 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_get_extent_inline_ref_type() local 804 struct btrfs_fs_info *fs_info = trans->fs_info; in lookup_inline_extent_backref() local 1130 struct btrfs_fs_info *fs_info = leaf->fs_info; in update_inline_extent_backref() local 1387 struct btrfs_fs_info *fs_info = dev->fs_info; in do_discard_extent() local 1424 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_discard_extent() 1493 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_inc_extent_ref() local 1582 static void free_head_ref_squota_rsv(struct btrfs_fs_info *fs_info, in free_head_ref_squota_rsv() 1694 struct btrfs_fs_info *fs_info = trans->fs_info; in run_delayed_extent_op() local [all …]
|
| H A D | file-item.c | 128 static size_t bytes_to_csum_size(const struct btrfs_fs_info *fs_info, u32 bytes) in bytes_to_csum_size() 135 static size_t csum_size_to_bytes(const struct btrfs_fs_info *fs_info, u32 csum_size) in csum_size_to_bytes() 142 static inline u32 max_ordered_sum_bytes(const struct btrfs_fs_info *fs_info) in max_ordered_sum_bytes() 154 static int btrfs_ordered_sum_size(const struct btrfs_fs_info *fs_info, unsigned long bytes) in btrfs_ordered_sum_size() 204 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csum() local 277 static int search_csum_tree(struct btrfs_fs_info *fs_info, in search_csum_tree() 351 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_lookup_bio_sums() local 530 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csums_list() local 675 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csums_bitmap() local 803 struct btrfs_fs_info *fs_info = inode->root->fs_info; in csum_one_bio() local [all …]
|
| H A D | compression.c | 183 struct folio *btrfs_alloc_compr_folio(struct btrfs_fs_info *fs_info, gfp_t gfp) in btrfs_alloc_compr_folio() 253 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in end_compressed_writeback() local 319 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_submit_compressed_write() local 369 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in add_ra_bio_folios() local 525 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_submit_compressed_read() local 670 static struct list_head *alloc_heuristic_ws(struct btrfs_fs_info *fs_info) in alloc_heuristic_ws() 699 static struct list_head *alloc_workspace(struct btrfs_fs_info *fs_info, int type, int level) in alloc_workspace() 731 static int alloc_workspace_manager(struct btrfs_fs_info *fs_info, in alloc_workspace_manager() 765 static void free_workspace_manager(struct btrfs_fs_info *fs_info, in free_workspace_manager() 791 struct list_head *btrfs_get_workspace(struct btrfs_fs_info *fs_info, int type, int level) in btrfs_get_workspace() [all …]
|
| H A D | messages.c | 118 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function, in __btrfs_handle_fs_error() 215 void _btrfs_printk(const struct btrfs_fs_info *fs_info, unsigned int level, const char *fmt, ...) in _btrfs_printk() 248 void __cold btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_warn_32bit_limit() 260 void __cold btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info) in btrfs_err_32bit_limit() 278 void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function, in __btrfs_panic()
|
| /linux/fs/btrfs/tests/ |
| H A D | extent-map-tests.c | 62 static int test_case_1(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_1() 163 static int test_case_2(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_2() 257 static int __test_case_3(struct btrfs_fs_info *fs_info, in __test_case_3() 351 static int test_case_3(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_3() 366 static int __test_case_4(struct btrfs_fs_info *fs_info, in __test_case_4() 485 static int test_case_4(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_4() 623 static int test_case_5(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_5() 710 static int test_case_6(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_6() 770 static int test_case_7(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_7() 912 static int test_case_8(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) in test_case_8() [all …]
|
| H A D | raid-stripe-tree-tests.c | 40 struct btrfs_fs_info *fs_info = trans->fs_info; in test_punch_hole_3extents() local 218 struct btrfs_fs_info *fs_info = trans->fs_info; in test_delete_two_extents() local 362 struct btrfs_fs_info *fs_info = trans->fs_info; in test_punch_hole() local 505 struct btrfs_fs_info *fs_info = trans->fs_info; in test_front_delete_prev_item() local 647 struct btrfs_fs_info *fs_info = trans->fs_info; in test_front_delete() local 756 struct btrfs_fs_info *fs_info = trans->fs_info; in test_tail_delete() local 878 struct btrfs_fs_info *fs_info = trans->fs_info; in test_create_update_delete() local 999 struct btrfs_fs_info *fs_info = trans->fs_info; in test_simple_create_delete() local 1087 struct btrfs_fs_info *fs_info; in run_test() local
|