Home
last modified time | relevance | path

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

1234

/linux/fs/btrfs/
H A Dsubpage.h104 static inline bool btrfs_meta_is_subpage(const struct btrfs_fs_info *fs_info) in btrfs_meta_is_subpage()
108 static inline bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, in btrfs_is_subpage()
116 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info,
118 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio,
122 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info,
129 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
130 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
132 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info,
134 void btrfs_folio_set_lock(const struct btrfs_fs_info *fs_info,
136 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info,
[all …]
H A Dzoned.h24 struct btrfs_fs_info;
56 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info);
60 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info);
61 int btrfs_check_mountopts_zoned(const struct btrfs_fs_info *info,
78 int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info,
86 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical,
91 void btrfs_zoned_reserve_data_reloc_bg(struct btrfs_fs_info *fs_info);
92 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info);
93 bool btrfs_zoned_should_reclaim(const struct btrfs_fs_info *fs_info);
94 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical,
[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.h28 struct btrfs_fs_info;
114 struct btrfs_fs_info *fs_info;
446 struct btrfs_fs_info *fs_info;
515 struct btrfs_fs_info *fs_info;
714 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
718 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info,
721 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info,
724 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info);
725 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info);
729 void btrfs_mapping_tree_free(struct btrfs_fs_info *fs_info);
[all …]
H A Dqgroup.h19 struct btrfs_fs_info;
331 enum btrfs_qgroup_mode btrfs_qgroup_mode(const struct btrfs_fs_info *fs_info);
332 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info);
333 bool btrfs_qgroup_full_accounting(const struct btrfs_fs_info *fs_info);
334 int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
336 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
337 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
338 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info);
339 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
347 int btrfs_qgroup_cleanup_dropped_subvolume(struct btrfs_fs_info *fs_info, u64 subvolid);
[all …]
H A Dspace-info.h15 struct btrfs_fs_info;
109 struct btrfs_fs_info *fs_info;
250 struct btrfs_fs_info *fs_info = sinfo->fs_info; \
269 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
270 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info,
274 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info,
278 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
279 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
282 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
286 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info,
[all …]
H A Dsysfs.h11 struct btrfs_fs_info;
32 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
37 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
38 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
40 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
45 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
47 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
48 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
49 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
H A Ddelayed-ref.h21 struct btrfs_fs_info;
308 static inline u64 btrfs_calc_delayed_ref_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_bytes()
329 static inline u64 btrfs_calc_delayed_ref_csum_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_csum_bytes()
385 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
390 btrfs_find_delayed_ref_head(const struct btrfs_fs_info *fs_info,
397 void btrfs_delete_ref_head(const struct btrfs_fs_info *fs_info,
402 const struct btrfs_fs_info *fs_info,
408 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
410 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums);
412 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_info);
[all …]
H A Dblock-group.h19 struct btrfs_fs_info;
119 struct btrfs_fs_info *fs_info;
303 struct btrfs_fs_info *info, u64 bytenr);
305 struct btrfs_fs_info *info, u64 bytenr);
310 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info,
313 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info,
325 struct btrfs_fs_info *fs_info,
329 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info);
332 void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info);
334 int btrfs_read_block_groups(struct btrfs_fs_info *info);
[all …]
H A Dfs.h427 struct btrfs_fs_info { struct
908 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument
913 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation()
918 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed()
923 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed()
928 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen()
934 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen()
944 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
955 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size()
965 static inline u64 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_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 Drelocation.h9 struct btrfs_fs_info;
15 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start,
20 int btrfs_recover_relocation(struct btrfs_fs_info *fs_info);
30 int btrfs_should_cancel_balance(const struct btrfs_fs_info *fs_info);
31 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
33 u64 btrfs_get_reloc_bg_bytenr(const struct btrfs_fs_info *fs_info);
H A Dsubpage.c66 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_attach_folio_state()
98 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio, in btrfs_detach_folio_state()
116 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_alloc_folio_state()
148 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_inc_eb_refs()
162 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_dec_eb_refs()
177 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
223 static bool btrfs_subpage_end_and_test_lock(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_and_test_lock()
275 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock()
305 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock_bitmap()
361 void btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_info, in btrfs_subpage_set_uptodate()
[all …]
H A Dextent-tree.h12 struct btrfs_fs_info;
105 u64 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info,
108 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len);
110 struct btrfs_fs_info *fs_info, u64 bytenr,
150 u64 btrfs_get_extent_owner_root(struct btrfs_fs_info *fs_info,
152 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len,
164 void btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, u64 start, u64 end);
165 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr,
167 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range);
H A Dsuper.h11 struct btrfs_fs_info;
13 bool btrfs_check_options(const struct btrfs_fs_info *info,
17 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
19 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info);
21 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb()
H A Dfs.c60 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start()
86 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock()
99 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock()
104 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish()
112 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance()
137 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat()
160 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat()
183 void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_compat_ro()
206 void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_compat_ro()
H A Dspace-info.c189 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full()
209 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
237 static void init_space_info(struct btrfs_fs_info *info, in init_space_info()
261 struct btrfs_fs_info *fs_info = parent->fs_info; in create_space_info_sub_group()
285 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info()
322 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
359 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info()
387 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info()
402 static u64 calc_effective_data_chunk_size(struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size()
424 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space()
[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 Dtransaction.h25 struct btrfs_fs_info;
114 struct btrfs_fs_info *fs_info;
166 struct btrfs_fs_info *fs_info;
284 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
287 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
288 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
294 void btrfs_throttle(struct btrfs_fs_info *fs_info);
297 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
300 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
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 Dbackref.h25 struct btrfs_fs_info;
88 struct btrfs_fs_info *fs_info;
216 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical,
228 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info,
276 struct btrfs_fs_info *fs_info;
283 struct btrfs_backref_iter *btrfs_backref_iter_alloc(struct btrfs_fs_info *fs_info);
412 struct btrfs_fs_info *fs_info;
423 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info,
444 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
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 Dmessages.h11 struct btrfs_fs_info;
19 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_no_printk()
32 void _btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...);
184 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function,
195 void __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function,
216 void btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info);
217 void btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info);
/linux/fs/btrfs/tests/
H A Dbtrfs-tests.h49 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
50 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info);
53 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length);
56 struct btrfs_fs_info *fs_info);
57 void btrfs_init_dummy_transaction(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info);
58 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);

1234