| /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 | 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 | 489 struct btrfs_fs_info { struct 977 static inline unsigned int btrfs_min_folio_size(const struct btrfs_fs_info *fs_info) in btrfs_min_folio_size() argument 982 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() 987 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation() 992 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed() 997 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed() 1002 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() 1008 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen() 1018 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves() 1029 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 | 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 | 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 | space-info.c | 198 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 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 | 61 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() 333 struct btrfs_fs_info *fs_info = eb->fs_info; in check_tree_block_fsid() 360 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_validate_extent_buffer() 511 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; 264 void btrfs_btree_wait_writeback_range(struct btrfs_fs_info *fs_info, u64 start, u64 end); 269 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 271 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 274 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 289 void btrfs_readahead_tree_block(struct btrfs_fs_info *fs_info, 399 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, 403 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 | 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 | transaction.c | 183 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 257 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() 270 static noinline int join_transaction(struct btrfs_fs_info *fs_info, in join_transaction() 412 struct btrfs_fs_info *fs_info = root->fs_info; in record_root_in_trans() 472 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_add_dropped_root() 491 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_record_root_in_trans() 524 static void wait_current_trans(struct btrfs_fs_info *fs_info, unsigned int type) in wait_current_trans() 545 static bool may_wait_transaction(struct btrfs_fs_info *fs_info, int type) in may_wait_transaction() 558 struct btrfs_fs_info *fs_info = root->fs_info; in need_reserve_reloc_root() 569 static int btrfs_reserve_trans_metadata(struct btrfs_fs_info *fs_info, in btrfs_reserve_trans_metadata() [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 …]
|
| H A D | raid-stripe-tree.h | 21 struct btrfs_fs_info; 26 int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, 37 static inline bool btrfs_need_stripe_tree_update(struct btrfs_fs_info *fs_info, in btrfs_need_stripe_tree_update()
|
| H A D | async-thread.c | 27 struct btrfs_fs_info *fs_info; 50 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq) in btrfs_workqueue_owner() 55 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work) in btrfs_work_owner() 75 struct btrfs_fs_info *fs_info) in btrfs_init_workqueue() 84 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info, in btrfs_alloc_workqueue() 124 struct btrfs_fs_info *fs_info, const char *name, in btrfs_alloc_ordered_workqueue()
|
| H A D | compression.c | 183 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() 319 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_submit_compressed_write() 374 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in add_ra_bio_pages() 546 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_submit_compressed_read() 693 static struct list_head *alloc_heuristic_ws(struct btrfs_fs_info *fs_info) in alloc_heuristic_ws() 730 static struct list_head *alloc_workspace(struct btrfs_fs_info *fs_info, int type, int level) in alloc_workspace() 762 static int alloc_workspace_manager(struct btrfs_fs_info *fs_info, in alloc_workspace_manager() 796 static void free_workspace_manager(struct btrfs_fs_info *fs_info, in free_workspace_manager() 822 struct list_head *btrfs_get_workspace(struct btrfs_fs_info *fs_info, int type, int level) in btrfs_get_workspace() [all …]
|
| H A D | volumes.c | 261 static int btrfs_relocate_sys_chunks(struct btrfs_fs_info *fs_info); 1812 struct btrfs_fs_info *fs_info = device->fs_info; in find_free_dev_extent() 1953 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_free_dev_extent() 2001 static u64 find_next_chunk(struct btrfs_fs_info *fs_info) in find_next_chunk() 2019 static noinline int find_next_devid(struct btrfs_fs_info *fs_info, in find_next_devid() 2162 static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info, in btrfs_check_raid_min_devices() 2212 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_assign_next_active_device() 2231 static u64 btrfs_num_devices(struct btrfs_fs_info *fs_info) in btrfs_num_devices() 2245 static void btrfs_scratch_superblock(struct btrfs_fs_info *fs_info, in btrfs_scratch_superblock() 2267 void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, struct btrfs_device *device) in btrfs_scratch_superblocks() [all …]
|
| H A D | extent_io.c | 44 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_add_eb() 54 struct btrfs_fs_info *fs_info = eb->fs_info; in btrfs_leak_debug_del_eb() 62 void btrfs_extent_buffer_leak_debug_check(struct btrfs_fs_info *fs_info) in btrfs_extent_buffer_leak_debug_check() 244 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() 307 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in lock_delalloc_folios() 374 struct btrfs_fs_info *fs_info = inode_to_fs_info(inode); in find_lock_delalloc_range() 482 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in btrfs_verify_folio() 492 struct btrfs_fs_info *fs_info = folio_to_fs_info(folio); in end_folio_read() 520 struct btrfs_fs_info *fs_info = bbio->inode->root->fs_info; in end_bbio_data_write() [all …]
|
| H A D | ref-verify.c | 196 static void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() 210 static inline void __print_stack_trace(struct btrfs_fs_info *fs_info, in __print_stack_trace() 245 static struct block_entry *add_block_entry(struct btrfs_fs_info *fs_info, in add_block_entry() 294 static int add_tree_block(struct btrfs_fs_info *fs_info, u64 ref_root, in add_tree_block() 339 static int add_shared_data_ref(struct btrfs_fs_info *fs_info, in add_shared_data_ref() 368 static int add_extent_data_ref(struct btrfs_fs_info *fs_info, in add_extent_data_ref() 414 static int process_extent_item(struct btrfs_fs_info *fs_info, in process_extent_item() 494 struct btrfs_fs_info *fs_info = root->fs_info; in process_leaf() 599 static void dump_ref_action(struct btrfs_fs_info *fs_info, in dump_ref_action() 613 static void dump_block_entry(struct btrfs_fs_info *fs_info, in dump_block_entry() [all …]
|
| /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, 792 TP_PROTO(const struct btrfs_fs_info *fs_info, int wait), 809 TP_PROTO(const struct btrfs_fs_info *fs_info, 854 TP_PROTO(const struct btrfs_fs_info *fs_info, 895 TP_PROTO(const struct btrfs_fs_info *fs_info, 903 TP_PROTO(const struct btrfs_fs_info *fs_info, 911 TP_PROTO(const struct btrfs_fs_info *fs_info, 956 TP_PROTO(const struct btrfs_fs_info *fs_info, [all …]
|