Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
H A Ddisk-io.c70 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local
153 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, in btrfs_check_super_csum()
175 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_repair_eb_io_failure() local
214 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer() local
258 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_csum_one_bio() local
330 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() local
357 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_validate_extent_buffer() local
508 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in btree_dirty_folio() local
565 struct btrfs_fs_info *fs_info, in btrfs_find_create_tree_block()
581 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.c182 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local
256 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
269 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction()
411 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() local
471 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() local
490 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() local
523 static void wait_current_trans(struct btrfs_fs_info *fs_info, unsigned int type) in wait_current_trans()
544 static bool may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction()
557 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() local
568 static int btrfs_reserve_trans_metadata(struct btrfs_fs_info *fs_info, in btrfs_reserve_trans_metadata()
[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()
402 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() local
432 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv()
[all …]
H A Dblock-group.c28 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() local
56 static u64 get_restripe_target(const struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target()
85 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile()
134 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in btrfs_get_alloc_profile()
209 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_add_block_group_cache() local
288 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group() local
327 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, in btrfs_inc_nocow_writers()
378 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info, in btrfs_dec_block_group_reservations()
499 struct btrfs_fs_info *fs_info = block_group->fs_info; in fragment_free_space() local
596 struct btrfs_fs_info *fs_info = block_group->fs_info; in sample_block_group_extent_item() local
[all …]
H A Dsuper.c71 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_put_super() local
667 static void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info) in btrfs_clear_oneshot_options()
674 static bool check_ro_option(const struct btrfs_fs_info *fs_info, in check_ro_option()
737 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info) in btrfs_set_free_space_cache_settings()
777 static void set_device_specific_options(struct btrfs_fs_info *fs_info) in set_device_specific_options()
800 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info, in btrfs_get_subvol_name_from_objectid()
918 static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objectid) in get_default_subvol_objectid()
960 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_fill_super() local
1013 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_sync_fs() local
1202 struct btrfs_fs_info *fs_info = btrfs_sb(s); in mount_subvol() local
[all …]
H A Dspace-info.c209 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
261 struct btrfs_fs_info *fs_info = parent->fs_info; in create_space_info_sub_group() local
327 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
421 static u64 calc_effective_data_chunk_size(struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size()
446 struct btrfs_fs_info *fs_info = space_info->fs_info; in calc_available_free_space() local
614 #define DUMP_BLOCK_RSV(fs_info, rsv_name) \ argument
623 static void dump_global_block_rsv(struct btrfs_fs_info *fs_info) in dump_global_block_rsv()
635 const struct btrfs_fs_info *fs_info = info->fs_info; in __btrfs_dump_space_info() local
655 struct btrfs_fs_info *fs_info = info->fs_info; in btrfs_dump_space_info() local
692 static inline u64 calc_reclaim_items_nr(const struct btrfs_fs_info *fs_info, in calc_reclaim_items_nr()
[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 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.c196 struct btrfs_fs_info *fs_info; member
354 static int init_scrub_stripe(struct btrfs_fs_info *fs_info, in init_scrub_stripe()
398 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed()
408 static void scrub_pause_on(struct btrfs_fs_info *fs_info) in scrub_pause_on()
414 static void scrub_pause_off(struct btrfs_fs_info *fs_info) in scrub_pause_off()
424 static void scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in scrub_blocked_if_needed()
450 struct btrfs_fs_info *fs_info, bool is_dev_replace) in scrub_setup_ctx()
505 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode() local
586 struct btrfs_fs_info *fs_info = dev->fs_info; in scrub_print_common_warning() local
686 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_kaddr() local
[all …]
H A Ddelayed-ref.c31 bool btrfs_check_space_for_delayed_refs(struct btrfs_fs_info *fs_info) in btrfs_check_space_for_delayed_refs()
66 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums) in btrfs_delayed_refs_rsv_release()
90 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_update_delayed_refs_rsv() local
135 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info) in btrfs_inc_delayed_refs_rsv_bg_inserts()
154 void btrfs_dec_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info) in btrfs_dec_delayed_refs_rsv_bg_inserts()
170 void btrfs_inc_delayed_refs_rsv_bg_updates(struct btrfs_fs_info *fs_info) in btrfs_inc_delayed_refs_rsv_bg_updates()
189 void btrfs_dec_delayed_refs_rsv_bg_updates(struct btrfs_fs_info *fs_info) in btrfs_dec_delayed_refs_rsv_bg_updates()
210 int btrfs_delayed_refs_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_delayed_refs_rsv_refill()
370 static inline void drop_delayed_ref(struct btrfs_fs_info *fs_info, in drop_delayed_ref()
384 static bool merge_ref(struct btrfs_fs_info *fs_info, in merge_ref()
[all …]
H A Dvolumes.c1811 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent() local
1952 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() local
2000 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk()
2018 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid()
2161 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices()
2211 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() local
2230 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices()
2244 static void btrfs_scratch_superblock(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblock()
2266 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, struct btrfs_device *device) in btrfs_scratch_superblocks()
2288 int btrfs_rm_device(struct btrfs_fs_info *fs_info, in btrfs_rm_device()
[all …]
H A Dtree-mod-log.c58 static u64 btrfs_inc_tree_mod_seq(struct btrfs_fs_info *fs_info) in btrfs_inc_tree_mod_seq()
71 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_get_tree_mod_seq()
85 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_put_tree_mod_seq()
144 static noinline int tree_mod_log_insert(struct btrfs_fs_info *fs_info, in tree_mod_log_insert()
208 static bool tree_mod_dont_log(struct btrfs_fs_info *fs_info, const struct extent_buffer *eb) in tree_mod_dont_log()
225 static bool tree_mod_need_log(const struct btrfs_fs_info *fs_info, in tree_mod_need_log()
406 static int tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, in tree_mod_log_free_eb()
430 struct btrfs_fs_info *fs_info = old_root->fs_info; in btrfs_tree_mod_log_insert_root() local
510 static struct tree_mod_elem *__tree_mod_log_search(struct btrfs_fs_info *fs_info, in __tree_mod_log_search()
557 static struct tree_mod_elem *tree_mod_log_search_oldest(struct btrfs_fs_info *fs_info, in tree_mod_log_search_oldest()
[all …]
H A Dioctl.c221 static int check_fsflags_compatible(const struct btrfs_fs_info *fs_info, in check_fsflags_compatible()
261 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_fileattr_set() local
409 static noinline int btrfs_ioctl_fitrim(struct btrfs_fs_info *fs_info, in btrfs_ioctl_fitrim()
503 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in create_subvol() local
708 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in create_snapshot() local
836 struct btrfs_fs_info *fs_info = inode_to_fs_info(dir); in btrfs_mksubvol() local
923 static int exclop_start_or_cancel_reloc(struct btrfs_fs_info *fs_info, in exclop_start_or_cancel_reloc()
960 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_ioctl_resize() local
1230 struct btrfs_fs_info *fs_info = inode_to_fs_info(file_inode(file)); in btrfs_ioctl_snap_create_v2() local
1264 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_ioctl_subvol_getflags() local
[all …]
H A Dzoned.c294 static int calculate_emulated_zone_size(struct btrfs_fs_info *fs_info) in calculate_emulated_zone_size()
330 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) in btrfs_get_dev_zone_info_all_devices()
359 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_get_dev_zone_info() local
676 static int btrfs_check_for_zoned_device(struct btrfs_fs_info *fs_info) in btrfs_check_for_zoned_device()
692 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) in btrfs_check_zoned_mode()
1231 struct btrfs_fs_info *fs_info = cache->fs_info; in calculate_alloc_pointer() local
1308 static int btrfs_load_zone_info(struct btrfs_fs_info *fs_info, int zone_idx, in btrfs_load_zone_info()
1440 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_dup() local
1505 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_raid1() local
1571 struct btrfs_fs_info *fs_info = bg->fs_info; in btrfs_load_block_group_raid0() local
[all …]
H A Drelocation.c306 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
481 struct btrfs_fs_info *fs_info = root->fs_info; in __add_reloc_root() local
513 struct btrfs_fs_info *fs_info = root->fs_info; in __del_reloc_root() local
556 struct btrfs_fs_info *fs_info = root->fs_info; in __update_reloc_root() local
586 struct btrfs_fs_info *fs_info = root->fs_info; in create_reloc_root() local
701 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_reloc_root() local
767 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_update_reloc_root() local
860 struct btrfs_fs_info *fs_info = root->fs_info; in replace_file_extents() local
1013 struct btrfs_fs_info *fs_info = dest->fs_info; in replace_path() local
1334 struct btrfs_fs_info *fs_info = root->fs_info; in invalidate_extent_cache() local
[all …]
H A Dextent_io.c43 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb() local
53 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb() local
61 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info) in btrfs_extent_buffer_leak_debug_check()
243 static void process_one_folio(struct btrfs_fs_info *fs_info, in process_one_folio()
269 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in __process_folios_contig() local
306 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in lock_delalloc_folios() local
373 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in find_lock_delalloc_range() local
481 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in btrfs_verify_folio() local
491 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in end_folio_read() local
519 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() argument
104 struct btrfs_fs_info *fs_info, u64 bytenr, in btrfs_lookup_extent_info() argument
349 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_get_extent_inline_ref_type() local
804 struct btrfs_fs_info *fs_info = trans->fs_info; lookup_inline_extent_backref() local
1130 struct btrfs_fs_info *fs_info = leaf->fs_info; update_inline_extent_backref() local
1387 struct btrfs_fs_info *fs_info = dev->fs_info; do_discard_extent() local
1424 btrfs_discard_extent(struct btrfs_fs_info * fs_info,u64 bytenr,u64 num_bytes,u64 * actual_bytes,bool do_remap) btrfs_discard_extent() argument
1493 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_inc_extent_ref() local
1582 free_head_ref_squota_rsv(struct btrfs_fs_info * fs_info,const struct btrfs_delayed_ref_head * href) free_head_ref_squota_rsv() argument
1694 struct btrfs_fs_info *fs_info = trans->fs_info; run_delayed_extent_op() local
1789 struct btrfs_fs_info *fs_info = trans->fs_info; run_delayed_tree_ref() local
1838 struct btrfs_fs_info *fs_info = trans->fs_info; run_one_delayed_ref() local
1906 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info * fs_info,struct btrfs_delayed_ref_root * delayed_refs,struct btrfs_delayed_ref_head * head) btrfs_cleanup_ref_head_accounting() argument
1940 struct btrfs_fs_info *fs_info = trans->fs_info; cleanup_ref_head() local
2001 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_delayed_refs_for_head() local
2087 struct btrfs_fs_info *fs_info = trans->fs_info; __btrfs_run_delayed_refs() local
2229 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_delayed_refs() local
2425 struct btrfs_fs_info *fs_info = root->fs_info; check_committed_ref() local
2554 struct btrfs_fs_info *fs_info = root->fs_info; __btrfs_mod_ref() local
2649 struct btrfs_fs_info *fs_info = root->fs_info; get_alloc_profile_by_root() local
2664 first_logical_byte(struct btrfs_fs_info * fs_info) first_logical_byte() argument
2744 __exclude_logged_extent(struct btrfs_fs_info * fs_info,u64 start,u64 num_bytes) __exclude_logged_extent() argument
2766 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_exclude_logged_extents() local
2807 fetch_cluster_info(struct btrfs_fs_info * fs_info,struct btrfs_space_info * space_info,u64 * empty_cluster) fetch_cluster_info() argument
2831 unpin_extent_range(struct btrfs_fs_info * fs_info,u64 start,u64 end,const bool return_free_space) unpin_extent_range() argument
2917 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_complete_bg_remapping() local
2953 btrfs_handle_fully_remapped_bgs(struct btrfs_fs_info * fs_info) btrfs_handle_fully_remapped_bgs() argument
2981 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_finish_extent_commit() local
3102 btrfs_get_extent_owner_root(struct btrfs_fs_info * fs_info,struct extent_buffer * leaf,int slot) btrfs_get_extent_owner_root() argument
3570 struct btrfs_fs_info *fs_info = trans->fs_info; check_ref_cleanup() local
3622 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_free_tree_block() local
3708 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_free_extent() local
4030 struct btrfs_fs_info *fs_info = block_group->fs_info; do_allocation_zoned() local
4259 can_allocate_chunk_zoned(struct btrfs_fs_info * fs_info,struct find_free_extent_ctl * ffe_ctl) can_allocate_chunk_zoned() argument
4312 can_allocate_chunk(struct btrfs_fs_info * fs_info,struct find_free_extent_ctl * ffe_ctl) can_allocate_chunk() argument
4330 find_free_extent_update_loop(struct btrfs_fs_info * fs_info,struct btrfs_key * ins,struct find_free_extent_ctl * ffe_ctl,struct btrfs_space_info * space_info,bool full_search) find_free_extent_update_loop() argument
4423 prepare_allocation_clustered(struct btrfs_fs_info * fs_info,struct find_free_extent_ctl * ffe_ctl,struct btrfs_space_info * space_info,struct btrfs_key * ins) prepare_allocation_clustered() argument
4474 prepare_allocation_zoned(struct btrfs_fs_info * fs_info,struct find_free_extent_ctl * ffe_ctl,struct btrfs_space_info * space_info) prepare_allocation_zoned() argument
4519 prepare_allocation(struct btrfs_fs_info * fs_info,struct find_free_extent_ctl * ffe_ctl,struct btrfs_space_info * space_info,struct btrfs_key * ins) prepare_allocation() argument
4564 struct btrfs_fs_info *fs_info = root->fs_info; find_free_extent() local
4879 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_reserve_extent() local
4929 btrfs_free_reserved_extent(struct btrfs_fs_info * fs_info,u64 start,u64 len,bool is_delalloc) btrfs_free_reserved_extent() argument
4970 struct btrfs_fs_info *fs_info = trans->fs_info; alloc_reserved_extent() local
4994 struct btrfs_fs_info *fs_info = trans->fs_info; alloc_reserved_file_extent() local
5074 struct btrfs_fs_info *fs_info = trans->fs_info; alloc_reserved_tree_block() local
5188 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_alloc_logged_file_extent() local
5259 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_init_new_buffer() local
5347 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_alloc_tree_block() local
5551 struct btrfs_fs_info *fs_info = root->fs_info; reada_walk_down() local
5629 struct btrfs_fs_info *fs_info = root->fs_info; walk_down_proc() local
5911 struct btrfs_fs_info *fs_info = root->fs_info; do_walk_down() local
6022 struct btrfs_fs_info *fs_info = root->fs_info; walk_up_proc() local
6253 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_drop_snapshot() local
6527 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_drop_subtree() local
6585 btrfs_error_unpin_extent_range(struct btrfs_fs_info * fs_info,u64 start,u64 end) btrfs_error_unpin_extent_range() argument
6634 struct btrfs_fs_info *fs_info = device->fs_info; btrfs_trim_free_extents_throttle() local
6713 btrfs_trim_free_extents(struct btrfs_fs_info * fs_info,u64 * trimmed,u64 * dev_failed,int * dev_ret) btrfs_trim_free_extents() argument
6838 btrfs_trim_fs(struct btrfs_fs_info * fs_info,struct fstrim_range * range) btrfs_trim_fs() argument
[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()
349 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_lookup_bio_sums() local
504 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csums_list() local
649 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_csums_bitmap() local
777 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) 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
374 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in add_ra_bio_pages() local
530 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_submit_compressed_read() local
666 static struct list_head *alloc_heuristic_ws(struct btrfs_fs_info *fs_info) in alloc_heuristic_ws()
703 static struct list_head *alloc_workspace(struct btrfs_fs_info *fs_info, int type, int level) in alloc_workspace()
735 static int alloc_workspace_manager(struct btrfs_fs_info *fs_info, in alloc_workspace_manager()
769 static void free_workspace_manager(struct btrfs_fs_info *fs_info, in free_workspace_manager()
795 struct list_head *btrfs_get_workspace(struct btrfs_fs_info *fs_info, int type, int level) in btrfs_get_workspace()
[all …]
H A Dtree-checker.c59 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err() local
85 const struct btrfs_fs_info *fs_info = eb->fs_info; in file_extent_err() local
146 const struct btrfs_fs_info *fs_info = eb->fs_info; in dir_item_err() local
211 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_extent_data_item() local
368 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_csum_item() local
525 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_dir_item() local
662 const struct btrfs_fs_info *fs_info = eb->fs_info; in block_group_err() local
685 struct btrfs_fs_info *fs_info = leaf->fs_info; in check_block_group_item() local
785 static void chunk_err(const struct btrfs_fs_info *fs_info, in chunk_err()
860 int btrfs_check_chunk_valid(const struct btrfs_fs_info *fs_info, in btrfs_check_chunk_valid()
[all …]
/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 Dbtrfs-tests.c97 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device()
120 struct btrfs_fs_info *fs_info = kzalloc_obj(struct btrfs_fs_info); in btrfs_alloc_dummy_fs_info() local
155 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) in btrfs_free_dummy_fs_info()
203 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, in btrfs_alloc_dummy_block_group()
240 void btrfs_init_dummy_transaction(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info) in btrfs_init_dummy_transaction()
250 struct btrfs_fs_info *fs_info) in btrfs_init_dummy_trans()
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

123