Home
last modified time | relevance | path

Searched defs:fs_info (Results 1 – 25 of 76) sorted by relevance

1234

/linux/fs/btrfs/
H A Ddisk-io.c69 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()
178 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_repair_eb_io_failure() local
217 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer() local
261 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_csum_one_bio() local
334 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() local
361 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_validate_extent_buffer() local
536 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in btree_dirty_folio() local
593 struct btrfs_fs_info *fs_info, in btrfs_find_create_tree_block()
610 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, in read_tree_block()
[all …]
H A Dmessages.h18 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 Dtransaction.c183 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 Dsubpage.c38 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 Ddev-replace.c70 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace()
232 static int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, in btrfs_init_dev_replace_tgtdev()
341 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_run_dev_replace() local
441 static int mark_block_group_to_copy(struct btrfs_fs_info *fs_info, in mark_block_group_to_copy()
539 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_finish_block_group_to_copy() local
587 static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, in btrfs_dev_replace_start()
744 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 …]
H A Dqgroup.c33 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 Dblock-rsv.c104 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 Dblock-group.c56 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 Dsuper.c73 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()
666 static bool check_ro_option(const struct btrfs_fs_info *fs_info, in check_ro_option()
730 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info) in btrfs_set_free_space_cache_settings()
770 static void set_device_specific_options(struct btrfs_fs_info *fs_info) in set_device_specific_options()
793 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info, in btrfs_get_subvol_name_from_objectid()
911 static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objectid) in get_default_subvol_objectid()
953 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_fill_super() local
1006 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_sync_fs() local
1195 struct btrfs_fs_info *fs_info = btrfs_sb(s); in mount_subvol() local
[all …]
H A Dref-verify.h26 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 Dspace-info.c220 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 Dfs.c177 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 Dsysfs.c121 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 Dscrub.c188 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 Dvolumes.c1807 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent() local
1948 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local
1996 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk()
2014 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid()
2165 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices()
2215 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local
2234 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices()
2248 static void btrfs_scratch_superblock(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblock()
2270 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, struct btrfs_device *device) in btrfs_scratch_superblocks()
2295 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_remove_dev_stat_item() local
[all …]
H A Drelocation.c185 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 Dioctl.c246 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 Dzoned.c296 static int calculate_emulated_zone_size(struct btrfs_fs_info *fs_info) in calculate_emulated_zone_size()
332 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices()
383 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_get_dev_zone_info() local
692 static int btrfs_check_for_zoned_device(struct btrfs_fs_info *fs_info) in btrfs_check_for_zoned_device()
708 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode()
1247 struct btrfs_fs_info *fs_info = cache->fs_info; in calculate_alloc_pointer() local
1324 static int btrfs_load_zone_info(struct btrfs_fs_info *fs_info, int zone_idx, in btrfs_load_zone_info()
1456 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_dup() local
1521 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_raid1() local
1587 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_raid0() local
[all …]
H A Dextent_io.c45 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 Dextent-tree.c72 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 Dfile-item.c128 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 Dcompression.c183 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 Dmessages.c118 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 Dextent-map-tests.c62 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 Draid-stripe-tree-tests.c40 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

1234