Home
last modified time | relevance | path

Searched refs:btrfs_fs_info (Results 1 – 25 of 78) sorted by relevance

1234

/linux/fs/btrfs/
H A Ddisk-io.h21 struct btrfs_fs_info;
46 void btrfs_check_leaked_roots(const struct btrfs_fs_info *fs_info);
47 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info);
48 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
51 struct btrfs_fs_info *fs_info,
55 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
56 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
59 void __cold close_ctree(struct btrfs_fs_info *fs_info);
60 int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
62 int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount);
[all …]
H A Dsubpage.h94 static inline bool btrfs_meta_is_subpage(const struct btrfs_fs_info *fs_info) in btrfs_meta_is_subpage()
98 static inline bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, in btrfs_is_subpage()
106 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info,
108 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio,
112 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info,
120 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
121 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
123 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info,
125 void btrfs_folio_set_lock(const struct btrfs_fs_info *fs_info,
127 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info,
[all …]
H A Dref-verify.h12 struct btrfs_fs_info;
19 int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info);
20 void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info);
21 int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
23 void btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, u64 start,
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()
[all …]
H A Dvolumes.h29 struct btrfs_fs_info;
127 struct btrfs_fs_info *fs_info;
446 struct btrfs_fs_info *fs_info;
521 struct btrfs_fs_info *fs_info;
732 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
736 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info,
739 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info,
742 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
743 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info);
747 void btrfs_mapping_tree_free(struct btrfs_fs_info *fs_info);
[all …]
H A Dblock-group.h19 struct btrfs_fs_info;
122 struct btrfs_fs_info *fs_info;
328 struct btrfs_fs_info *info, u64 bytenr);
330 struct btrfs_fs_info *info, u64 bytenr);
335 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info,
338 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info,
350 struct btrfs_fs_info *fs_info,
355 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info);
357 void btrfs_reclaim_block_groups(struct btrfs_fs_info *fs_info, unsigned int limit);
359 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info);
[all …]
H A Ddelayed-ref.h21 struct btrfs_fs_info;
309 static inline u64 btrfs_calc_delayed_ref_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_bytes()
330 static inline u64 btrfs_calc_delayed_ref_csum_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_csum_bytes()
386 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
391 btrfs_find_delayed_ref_head(const struct btrfs_fs_info *fs_info,
398 void btrfs_delete_ref_head(const struct btrfs_fs_info *fs_info,
403 const struct btrfs_fs_info *fs_info,
409 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
411 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums);
413 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
[all …]
H A Dfs.h503 struct btrfs_fs_info { struct
992 static inline unsigned int btrfs_min_folio_size(const struct btrfs_fs_info *fs_info) in btrfs_min_folio_size() argument
997 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation()
1002 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation()
1007 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed()
1012 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed()
1017 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen()
1023 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen()
1033 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
1044 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size()
[all …]
H A Dscrub.h8 struct btrfs_fs_info;
12 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
15 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
16 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
17 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
19 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
H A Ddiscard.h9 struct btrfs_fs_info;
34 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info);
35 void btrfs_discard_resume(struct btrfs_fs_info *fs_info);
36 void btrfs_discard_stop(struct btrfs_fs_info *fs_info);
37 void btrfs_discard_init(struct btrfs_fs_info *fs_info);
38 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
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()
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()
320 void btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_uptodate()
[all …]
H A Dasync-thread.h14 struct btrfs_fs_info;
32 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
38 struct btrfs_fs_info *fs_info, const char *name,
46 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work);
47 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq);
H A Dtree-mod-log.h9 struct btrfs_fs_info;
33 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info,
35 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
43 struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info,
56 u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);
H A Dtransaction.h22 struct btrfs_fs_info;
112 struct btrfs_fs_info *fs_info;
176 struct btrfs_fs_info *fs_info;
320 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
323 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
324 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
330 void btrfs_throttle(struct btrfs_fs_info *fs_info);
333 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
336 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
H A Duuid-tree.h9 struct btrfs_fs_info;
15 int btrfs_uuid_tree_check_overflow(struct btrfs_fs_info *fs_info,
17 int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info);
18 int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info);
H A Ddefrag.h11 struct btrfs_fs_info;
22 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
23 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
26 static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info) in btrfs_defrag_cancelled()
H A Dextent_io.h31 struct btrfs_fs_info;
90 struct btrfs_fs_info *fs_info;
287 void btrfs_btree_wait_writeback_range(struct btrfs_fs_info *fs_info, u64 start, u64 end);
292 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
295 int btrfs_init_eb_prealloc(struct btrfs_fs_info *fs_info,
298 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
301 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info,
316 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info,
419 void btrfs_zoned_release_dirty_metadata(struct btrfs_fs_info *fs_info);
441 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info,
[all …]
H A Dspace-info.c198 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full()
220 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
248 static void init_space_info(struct btrfs_fs_info *info, in init_space_info()
272 struct btrfs_fs_info *fs_info = parent->fs_info; in create_space_info_sub_group()
295 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info()
336 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
382 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info()
415 struct btrfs_space_info *btrfs_find_space_info(const struct btrfs_fs_info *info, in btrfs_find_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()
[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()
447 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv()
[all …]
H A Dmessages.h10 struct btrfs_fs_info;
18 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_no_printk()
27 void _btrfs_printk(const struct btrfs_fs_info *fs_info, unsigned int level, const char *fmt, ...);
171 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function,
182 void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function,
203 void btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info);
204 void btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info);
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.c101 static inline struct btrfs_fs_info *to_fs_info(struct kobject *kobj);
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()
195 struct btrfs_fs_info *fs_info; in btrfs_feature_attr_store()
262 struct btrfs_fs_info *fs_info = to_fs_info(kobj); in btrfs_feature_visible()
475 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_bytes_show()
486 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discardable_extents_show()
497 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bitmap_bytes_show()
508 struct btrfs_fs_info *fs_info = discard_to_fs_info(kobj); in btrfs_discard_bytes_saved_show()
[all …]
H A Ddisk-io.c61 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info);
62 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info);
69 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block()
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()
217 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer()
261 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_csum_one_bio()
334 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid()
361 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_validate_extent_buffer()
536 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in btree_dirty_folio()
[all …]
H A Dmessages.c30 static void btrfs_state_to_string(const struct btrfs_fs_info *info, char *buf) in btrfs_state_to_string()
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()
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()
159 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,
161 static void qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info);
177 static struct btrfs_qgroup *find_qgroup_rb(const struct btrfs_fs_info *fs_info, in find_qgroup_rb()
[all …]
H A Dblock-group.c56 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space()
84 static u64 get_restripe_target(const struct btrfs_fs_info *fs_info, u64 flags) in get_restripe_target()
113 static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags) in btrfs_reduce_alloc_profile()
162 u64 btrfs_get_alloc_profile(struct btrfs_fs_info *fs_info, u64 orig_flags) in btrfs_get_alloc_profile()
237 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_add_block_group_cache()
259 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search()
299 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_first_block_group()
308 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_block_group()
316 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group()
355 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_inf
[all...]

1234