| /linux/fs/btrfs/ |
| H A D | ref-verify.h | 12 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 D | volumes.h | 28 struct btrfs_fs_info; 126 struct btrfs_fs_info *fs_info; 439 struct btrfs_fs_info *fs_info; 505 struct btrfs_fs_info *fs_info; 710 int btrfs_map_block(struct btrfs_fs_info *fs_info, enum btrfs_map_op op, 714 int btrfs_map_repair_block(struct btrfs_fs_info *fs_info, 717 struct btrfs_discard_stripe *btrfs_map_discard(struct btrfs_fs_info *fs_info, 720 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 721 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 725 void btrfs_mapping_tree_free(struct btrfs_fs_info *fs_info); [all …]
|
| H A D | qgroup.h | 19 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 D | delayed-ref.h | 21 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 D | fs.h | 487 struct btrfs_fs_info { struct 975 static inline unsigned int btrfs_min_folio_size(struct btrfs_fs_info *fs_info) in btrfs_min_folio_size() argument 980 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() 985 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation() 990 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed() 995 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed() 1000 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() 1006 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen() 1016 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves() 1027 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size() [all …]
|
| H A D | scrub.h | 8 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 D | discard.h | 9 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 D | super.h | 11 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 D | async-thread.h | 14 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 D | space-info.c | 189 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() 286 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() 327 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() 373 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info() 406 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_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() [all …]
|
| H A D | tree-mod-log.h | 9 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 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() 402 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv() 432 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_init_global_block_rsv() [all …]
|
| H A D | uuid-tree.h | 9 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 D | defrag.h | 11 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 D | messages.h | 10 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 D | sysfs.c | 101 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 D | disk-io.c | 62 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info); 63 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info); 70 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() 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() 214 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_read_extent_buffer() 258 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_csum_one_bio() 330 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() 357 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_validate_extent_buffer() 508 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); in btree_dirty_folio() [all …]
|
| H A D | extent_io.h | 31 struct btrfs_fs_info; 91 struct btrfs_fs_info *fs_info; 241 void btrfs_btree_wait_writeback_range(struct btrfs_fs_info *fs_info, u64 start, u64 end); 246 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 248 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 251 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 266 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info, 375 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, 379 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info);
|
| 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() 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 D | transaction.c | 182 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 256 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 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() 471 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 490 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 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() 568 static int btrfs_reserve_trans_metadata(struct btrfs_fs_info *fs_info, in btrfs_reserve_trans_metadata() [all …]
|
| H A D | block-group.c | 28 struct btrfs_fs_info *fs_info = block_group->fs_info; in btrfs_should_fragment_free_space() 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() 231 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search() 271 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_first_block_group() 280 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_block_group() 288 struct btrfs_fs_info *fs_info = cache->fs_info; in btrfs_next_block_group() 327 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, in btrfs_inc_nocow_writers() [all …]
|
| H A D | super.c | 71 struct btrfs_fs_info *fs_info = btrfs_sb(sb); in btrfs_put_super() 91 static void btrfs_emit_options(struct btrfs_fs_info *info, 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() 686 bool btrfs_check_options(const struct btrfs_fs_info *info, in btrfs_check_options() 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() [all …]
|
| H A D | scrub.c | 196 struct btrfs_fs_info *fs_info; 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() 586 struct btrfs_fs_info *fs_info = dev->fs_info; in scrub_print_common_warning() 686 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; in scrub_stripe_get_kaddr() [all …]
|
| /linux/fs/btrfs/tests/ |
| H A D | btrfs-tests.c | 97 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() 118 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize) in btrfs_alloc_dummy_fs_info() 120 struct btrfs_fs_info *fs_info = kzalloc_obj(struct btrfs_fs_info); in btrfs_alloc_dummy_fs_info() 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()
|
| /linux/include/trace/events/ |
| H A D | btrfs.h | 13 struct btrfs_fs_info; 185 TP_PROTO(const struct btrfs_fs_info *fs_info), 319 TP_PROTO(const struct btrfs_fs_info *fs_info, 794 TP_PROTO(const struct btrfs_fs_info *fs_info, int wait), 811 TP_PROTO(const struct btrfs_fs_info *fs_info, 856 TP_PROTO(const struct btrfs_fs_info *fs_info, 897 TP_PROTO(const struct btrfs_fs_info *fs_info, 905 TP_PROTO(const struct btrfs_fs_info *fs_info, 913 TP_PROTO(const struct btrfs_fs_info *fs_info, 958 TP_PROTO(const struct btrfs_fs_info *fs_info, [all …]
|