/linux-master/fs/btrfs/ |
H A D | messages.h | 18 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) argument 26 #define btrfs_printk(fs_info, fmt, args...) \ 27 _btrfs_printk(fs_info, fmt, ##args) 31 void _btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...); 35 #define btrfs_printk(fs_info, fmt, args...) \ 36 btrfs_no_printk(fs_info, fmt, ##args) 39 #define btrfs_emerg(fs_info, fmt, args...) \ 40 btrfs_printk(fs_info, KERN_EMERG fmt, ##args) 41 #define btrfs_alert(fs_info, fmt, args...) \ 42 btrfs_printk(fs_info, KERN_ALER [all...] |
H A D | ref-verify.h | 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) argument 28 spin_lock_init(&fs_info->ref_verify_lock); 29 fs_info->block_tree = RB_ROOT; 32 static inline int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info) argument 37 static inline void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info) argument 41 static inline int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, argument 47 btrfs_free_ref_tree_range(struct btrfs_fs_info *fs_info, u64 start, u64 len) argument 52 btrfs_init_ref_verify(struct btrfs_fs_info *fs_info) argument [all...] |
H A D | dev-replace.h | 19 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info); 21 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, 23 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, 25 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info); 26 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info); 27 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info); 32 void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info); 33 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount); 35 static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info) argument 37 btrfs_bio_counter_sub(fs_info, [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); 64 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) argument 66 if (fs_info->csum_shash) 67 crypto_free_shash(fs_info->csum_shash); 75 struct btrfs_fs_info *fs_info = buf->fs_info; local 78 SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); 82 shash->tfm = fs_info->csum_shash; 88 first_page_part = fs_info 159 btrfs_check_super_csum(struct btrfs_fs_info *fs_info, const struct btrfs_super_block *disk_sb) argument 184 struct btrfs_fs_info *fs_info = eb->fs_info; local 218 struct btrfs_fs_info *fs_info = eb->fs_info; local 263 struct btrfs_fs_info *fs_info = eb->fs_info; local 336 struct btrfs_fs_info *fs_info = eb->fs_info; local 363 struct btrfs_fs_info *fs_info = eb->fs_info; local 503 struct btrfs_fs_info *fs_info; local 547 struct btrfs_fs_info *fs_info = inode_to_fs_info(mapping->host); local 603 btrfs_find_create_tree_block( struct btrfs_fs_info *fs_info, u64 bytenr, u64 owner_root, int level) argument 620 read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, struct btrfs_tree_parent_check *check) argument 646 __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, u64 objectid) argument 721 btrfs_alloc_root(struct btrfs_fs_info *fs_info, u64 objectid, gfp_t flags) argument 732 btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) argument 768 struct btrfs_fs_info *fs_info = root->fs_info; local 786 struct btrfs_fs_info *fs_info = root->fs_info; local 793 btrfs_global_root(struct btrfs_fs_info *fs_info, struct btrfs_key *key) argument 808 btrfs_global_root_id(struct btrfs_fs_info *fs_info, u64 bytenr) argument 829 btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr) argument 840 btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr) argument 851 btrfs_block_group_root(struct btrfs_fs_info *fs_info) argument 861 struct btrfs_fs_info *fs_info = trans->fs_info; local 929 alloc_log_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) argument 973 btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) argument 999 struct btrfs_fs_info *fs_info = root->fs_info; local 1041 struct btrfs_fs_info *fs_info = tree_root->fs_info; local 1163 btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, u64 root_id) argument 1176 btrfs_get_global_root(struct btrfs_fs_info *fs_info, u64 objectid) argument 1211 btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) argument 1234 btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info) argument 1255 free_global_roots(struct btrfs_fs_info *fs_info) argument 1267 btrfs_free_fs_info(struct btrfs_fs_info *fs_info) argument 1315 btrfs_get_root_ref(struct btrfs_fs_info *fs_info, u64 objectid, dev_t *anon_dev, bool check_ref) argument 1419 btrfs_get_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, bool check_ref) argument 1433 btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, dev_t *anon_dev) argument 1454 btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 objectid) argument 1488 struct btrfs_fs_info *fs_info = arg; local 1566 struct btrfs_fs_info *fs_info = root->fs_info; local 1746 read_backup_root(struct btrfs_fs_info *fs_info, u8 priority) argument 1782 btrfs_stop_all_workers(struct btrfs_fs_info *fs_info) argument 1820 free_global_root_pointers(struct btrfs_fs_info *fs_info) argument 1867 btrfs_free_fs_roots(struct btrfs_fs_info *fs_info) argument 1894 btrfs_init_scrub(struct btrfs_fs_info *fs_info) argument 1905 btrfs_init_balance(struct btrfs_fs_info *fs_info) argument 1918 struct btrfs_fs_info *fs_info = btrfs_sb(sb); local 1954 btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info) argument 1961 btrfs_init_qgroup(struct btrfs_fs_info *fs_info) argument 1974 btrfs_init_workqueues(struct btrfs_fs_info *fs_info) argument 2034 btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) argument 2072 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) argument 2131 struct btrfs_fs_info *fs_info = tree_root->fs_info; local 2236 btrfs_read_roots(struct btrfs_fs_info *fs_info) argument 2349 btrfs_validate_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb, int mirror_num) argument 2542 btrfs_validate_mount_super(struct btrfs_fs_info *fs_info) argument 2553 btrfs_validate_write_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb) argument 2609 load_important_roots(struct btrfs_fs_info *fs_info) argument 2626 init_tree_roots(struct btrfs_fs_info *fs_info) argument 2701 btrfs_init_fs_info(struct btrfs_fs_info *fs_info) argument 2838 init_mount_fs_info(struct btrfs_fs_info *fs_info, struct super_block *sb) argument 2881 struct btrfs_fs_info *fs_info = data; local 2900 btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info) argument 2916 btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info) argument 2970 btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info) argument 3103 btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount) argument 3205 struct btrfs_fs_info *fs_info = btrfs_sb(sb); local 3740 struct btrfs_fs_info *fs_info = device->fs_info; local 4022 write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors) argument 4135 btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) argument 4159 btrfs_commit_super(struct btrfs_fs_info *fs_info) argument 4179 warn_about_uncommitted_trans(struct btrfs_fs_info *fs_info) argument 4221 close_ctree(struct btrfs_fs_info *fs_info) argument 4398 struct btrfs_fs_info *fs_info = buf->fs_info; local 4422 __btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info, int flush_delayed) argument 4445 btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info) argument 4450 btrfs_btree_balance_dirty_nodelay(struct btrfs_fs_info *fs_info) argument 4455 btrfs_error_commit_super(struct btrfs_fs_info *fs_info) argument 4468 btrfs_drop_all_logs(struct btrfs_fs_info *fs_info) argument 4513 btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info) argument 4543 btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info) argument 4653 btrfs_destroy_all_delalloc_inodes(struct btrfs_fs_info *fs_info) argument 4675 btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) argument 4702 btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, struct extent_io_tree *unpin) argument 4752 btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) argument 4799 btrfs_free_all_qgroup_pertrans(struct btrfs_fs_info *fs_info) argument 4825 btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) argument 4859 btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info) argument [all...] |
H A D | fs.c | 8 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, argument 14 disk_super = fs_info->super_copy; 17 spin_lock(&fs_info->super_lock); 22 btrfs_info(fs_info, 26 spin_unlock(&fs_info->super_lock); 27 set_bit(BTRFS_FS_FEATURE_CHANGED, &fs_info->flags); 31 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, argument 37 disk_super = fs_info->super_copy; 40 spin_lock(&fs_info->super_lock); 45 btrfs_info(fs_info, 54 __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, const char *name) argument 77 __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, const char *name) argument [all...] |
H A D | scrub.h | 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); 19 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
|
H A D | transaction.c | 149 btrfs_err(transaction->fs_info, 177 struct btrfs_fs_info *fs_info = trans->fs_info; local 186 down_write(&fs_info->commit_root_sem); 188 if (test_bit(BTRFS_FS_RELOC_RUNNING, &fs_info->flags)) 189 fs_info->last_reloc_trans = trans->transid; 208 btrfs_drop_and_free_fs_root(fs_info, root); 213 up_write(&fs_info->commit_root_sem); 250 struct btrfs_fs_info *fs_info = trans->fs_info; local 263 join_transaction(struct btrfs_fs_info *fs_info, unsigned int type) argument 404 struct btrfs_fs_info *fs_info = root->fs_info; local 464 struct btrfs_fs_info *fs_info = root->fs_info; local 483 struct btrfs_fs_info *fs_info = root->fs_info; local 516 wait_current_trans(struct btrfs_fs_info *fs_info) argument 536 may_wait_transaction(struct btrfs_fs_info *fs_info, int type) argument 549 struct btrfs_fs_info *fs_info = root->fs_info; local 560 btrfs_reserve_trans_metadata(struct btrfs_fs_info *fs_info, enum btrfs_reserve_flush_enum flush, u64 num_bytes, u64 *delayed_refs_bytes) argument 594 struct btrfs_fs_info *fs_info = root->fs_info; local 896 struct btrfs_fs_info *fs_info = commit->fs_info; local 938 btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid) argument 997 btrfs_throttle(struct btrfs_fs_info *fs_info) argument 1019 struct btrfs_fs_info *fs_info = trans->fs_info; local 1118 btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) argument 1172 __btrfs_wait_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) argument 1210 btrfs_wait_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) argument 1227 struct btrfs_fs_info *fs_info = log_root->fs_info; local 1260 struct btrfs_fs_info *fs_info = trans->fs_info; local 1294 struct btrfs_fs_info *fs_info = root->fs_info; local 1327 struct btrfs_fs_info *fs_info = trans->fs_info; local 1413 btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info) argument 1442 struct btrfs_fs_info *fs_info = root->fs_info; local 1463 struct btrfs_fs_info *fs_info = trans->fs_info; local 1541 struct btrfs_fs_info *fs_info = src->fs_info; local 1637 struct btrfs_fs_info *fs_info = trans->fs_info; local 1935 update_super_roots(struct btrfs_fs_info *fs_info) argument 1974 struct btrfs_fs_info *fs_info = trans->fs_info; local 2000 struct btrfs_fs_info *fs_info = trans->fs_info; local 2083 struct btrfs_fs_info *fs_info = trans->fs_info; local 2092 btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info) argument 2116 btrfs_wait_delalloc_flush(struct btrfs_fs_info *fs_info) argument 2143 update_commit_stats(struct btrfs_fs_info *fs_info, ktime_t interval) argument 2154 struct btrfs_fs_info *fs_info = trans->fs_info; local 2613 btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info) argument 2659 struct btrfs_fs_info *fs_info = trans->fs_info; local [all...] |
H A D | discard.h | 33 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info); 34 void btrfs_discard_resume(struct btrfs_fs_info *fs_info); 35 void btrfs_discard_stop(struct btrfs_fs_info *fs_info); 36 void btrfs_discard_init(struct btrfs_fs_info *fs_info); 37 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
|
H A D | disk-io.h | 44 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info); 45 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info); 46 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 49 struct btrfs_fs_info *fs_info, 52 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info); 53 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info, 58 void __cold close_ctree(struct btrfs_fs_info *fs_info); 59 int btrfs_validate_super(struct btrfs_fs_info *fs_info, 61 int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount); 62 int write_all_supers(struct btrfs_fs_info *fs_info, in [all...] |
H A D | delalloc-space.c | 117 struct btrfs_fs_info *fs_info = root->fs_info; local 121 bytes = ALIGN(bytes, fs_info->sectorsize); 126 return btrfs_reserve_data_bytes(fs_info, bytes, flush); 133 struct btrfs_fs_info *fs_info = inode->root->fs_info; local 138 len = round_up(start + len, fs_info->sectorsize) - 139 round_down(start, fs_info->sectorsize); 140 start = round_down(start, fs_info->sectorsize); 147 ret = btrfs_reserve_data_bytes(fs_info, le 171 btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, u64 len) argument 192 struct btrfs_fs_info *fs_info = inode->root->fs_info; local 218 struct btrfs_fs_info *fs_info = inode->root->fs_info; local 240 btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) argument 284 struct btrfs_fs_info *fs_info = inode->root->fs_info; local 309 struct btrfs_fs_info *fs_info = root->fs_info; local 398 struct btrfs_fs_info *fs_info = inode->root->fs_info; local 427 struct btrfs_fs_info *fs_info = inode->root->fs_info; local [all...] |
H A D | block-rsv.c | 40 * successful we subtract fs_info->nodesize from ->reserved. 104 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, argument 153 btrfs_space_info_free_bytes_may_use(fs_info, 183 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, argument 188 rsv->space_info = btrfs_find_space_info(fs_info, 192 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, argument 201 btrfs_init_metadata_block_rsv(fs_info, block_rsv, type); 205 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, argument 210 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL); 214 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, argument 245 btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u64 num_bytes, enum btrfs_reserve_flush_enum flush) argument 274 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u64 num_bytes, u64 *qgroup_to_release) argument 325 btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) argument 407 struct btrfs_fs_info *fs_info = root->fs_info; local 431 btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) argument 448 btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) argument 466 struct btrfs_fs_info *fs_info = root->fs_info; local 488 struct btrfs_fs_info *fs_info = root->fs_info; local 557 btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *rsv) argument [all...] |
H A D | dev-replace.c | 66 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, 70 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) argument 74 struct btrfs_root *dev_root = fs_info->dev_root; 75 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; 103 if (btrfs_find_device(fs_info->fs_devices, &args)) { 104 btrfs_err(fs_info, 134 btrfs_warn(fs_info, 165 if (btrfs_find_device(fs_info->fs_devices, &args)) { 166 btrfs_err(fs_info, 176 dev_replace->tgtdev = btrfs_find_device(fs_info 240 btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, const char *device_path, struct btrfs_device *srcdev, struct btrfs_device **device_out) argument 346 struct btrfs_fs_info *fs_info = trans->fs_info; local 452 mark_block_group_to_copy(struct btrfs_fs_info *fs_info, struct btrfs_device *src_dev) argument 550 struct btrfs_fs_info *fs_info = cache->fs_info; local 598 btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, const char *tgtdev_name, u64 srcdevid, const char *srcdev_name, int read_src) argument 743 btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) argument 775 btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) argument 785 btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) argument 822 btrfs_dev_replace_update_device_in_mapping_tree( struct btrfs_fs_info *fs_info, struct btrfs_device *srcdev, struct btrfs_device *tgtdev) argument 846 btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, int scrub_ret) argument 1020 btrfs_dev_replace_progress(struct btrfs_fs_info *fs_info) argument 1044 btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) argument 1064 btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info) argument 1150 btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info) argument 1177 btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info) argument 1230 struct btrfs_fs_info *fs_info = data; local 1282 btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount) argument 1288 btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info) argument [all...] |
H A D | subpage.h | 91 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct address_space *mapping); 94 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, 96 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, struct folio *folio); 99 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, 103 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio); 104 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio); 106 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, 108 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, 111 int btrfs_folio_start_writer_lock(const struct btrfs_fs_info *fs_info, 113 void btrfs_folio_end_writer_lock(const struct btrfs_fs_info *fs_info, [all...] |
H A D | zoned.h | 58 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info); 62 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info); 79 int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, 87 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical, 92 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info); 93 bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info); 94 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, 96 int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info); 97 int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, 99 void btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info); 107 btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) argument 130 btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) argument 206 btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, struct btrfs_eb_write_context *ctx) argument 241 btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical, u64 length) argument 249 btrfs_free_zone_cache(struct btrfs_fs_info *fs_info) argument 251 btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info) argument 256 btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, u64 length) argument 259 btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info) argument 264 btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, bool do_finish) argument 272 btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info) argument 322 btrfs_check_device_zone_type(const struct btrfs_fs_info *fs_info, struct block_device *bdev) argument 365 btrfs_zoned_meta_io_lock(struct btrfs_fs_info *fs_info) argument 372 btrfs_zoned_meta_io_unlock(struct btrfs_fs_info *fs_info) argument 381 struct btrfs_fs_info *fs_info = bg->fs_info; local [all...] |
H A D | qgroup.c | 33 enum btrfs_qgroup_mode btrfs_qgroup_mode(struct btrfs_fs_info *fs_info) argument 35 if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags)) 37 if (fs_info->qgroup_flags & BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE) 42 bool btrfs_qgroup_enabled(struct btrfs_fs_info *fs_info) argument 44 return btrfs_qgroup_mode(fs_info) != BTRFS_QGROUP_MODE_DISABLED; 47 bool btrfs_qgroup_full_accounting(struct btrfs_fs_info *fs_info) argument 49 return btrfs_qgroup_mode(fs_info) == BTRFS_QGROUP_MODE_FULL; 82 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, argument 86 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); 90 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, argument 108 qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *dest, struct btrfs_qgroup *src) argument 118 qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *dest, struct btrfs_qgroup *src) argument 174 find_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) argument 200 add_qgroup_rb(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *prealloc, u64 qgroupid) argument 239 __del_qgroup_rb(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) argument 263 del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) argument 311 add_relation_rb(struct btrfs_fs_info *fs_info, struct btrfs_qgroup_list *prealloc, u64 memberid, u64 parentid) argument 325 del_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) argument 349 btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid, u64 rfer, u64 excl) argument 363 qgroup_mark_inconsistent(struct btrfs_fs_info *fs_info) argument 372 qgroup_read_enable_gen(struct btrfs_fs_info *fs_info, struct extent_buffer *leaf, int slot, struct btrfs_qgroup_status_item *ptr) argument 385 btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info) argument 591 btrfs_check_quota_leak(struct btrfs_fs_info *fs_info) argument 628 btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info) argument 864 struct btrfs_fs_info *fs_info = trans->fs_info; local 909 struct btrfs_fs_info *fs_info = trans->fs_info; local 995 btrfs_quota_enable(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_quota_ctl_args *quota_ctl_args) argument 1315 flush_reservations(struct btrfs_fs_info *fs_info) argument 1332 btrfs_quota_disable(struct btrfs_fs_info *fs_info) argument 1448 qgroup_dirty(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) argument 1487 __qgroup_excl_accounting(struct btrfs_fs_info *fs_info, u64 ref_root, struct btrfs_qgroup *src, int sign) argument 1539 quick_update_accounting(struct btrfs_fs_info *fs_info, u64 src, u64 dst, int sign) argument 1565 struct btrfs_fs_info *fs_info = trans->fs_info; local 1629 struct btrfs_fs_info *fs_info = trans->fs_info; local 1684 struct btrfs_fs_info *fs_info = trans->fs_info; local 1696 struct btrfs_fs_info *fs_info = trans->fs_info; local 1750 struct btrfs_fs_info *fs_info = trans->fs_info; local 1810 struct btrfs_fs_info *fs_info = trans->fs_info; local 1895 btrfs_qgroup_trace_extent_nolock(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_qgroup_extent_record *record) argument 2025 struct btrfs_fs_info *fs_info = trans->fs_info; local 2060 struct btrfs_fs_info *fs_info = trans->fs_info; local 2213 struct btrfs_fs_info *fs_info = trans->fs_info; local 2337 struct btrfs_fs_info *fs_info = trans->fs_info; local 2439 struct btrfs_fs_info *fs_info = trans->fs_info; local 2501 struct btrfs_fs_info *fs_info = trans->fs_info; local 2646 qgroup_update_refcnt(struct btrfs_fs_info *fs_info, struct ulist *roots, struct list_head *qgroups, u64 seq, int update_old) argument 2719 qgroup_update_counters(struct btrfs_fs_info *fs_info, struct list_head *qgroups, u64 nr_old_roots, u64 nr_new_roots, u64 num_bytes, u64 seq) argument 2834 struct btrfs_fs_info *fs_info = trans->fs_info; local 2909 struct btrfs_fs_info *fs_info = trans->fs_info; local 3007 struct btrfs_fs_info *fs_info = trans->fs_info; local 3049 btrfs_qgroup_check_inherit(struct btrfs_fs_info *fs_info, struct btrfs_qgroup_inherit *inherit, size_t size) argument 3100 qgroup_auto_inherit(struct btrfs_fs_info *fs_info, u64 inode_rootid, struct btrfs_qgroup_inherit **inherit) argument 3150 qgroup_snapshot_quick_inherit(struct btrfs_fs_info *fs_info, u64 srcid, u64 parentid) argument 3211 struct btrfs_fs_info *fs_info = trans->fs_info; local 3476 struct btrfs_fs_info *fs_info = root->fs_info; local 3534 btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, u64 ref_root, u64 num_bytes, enum btrfs_qgroup_rsv_type type) argument 3603 struct btrfs_fs_info *fs_info = trans->fs_info; local 3693 rescan_should_stop(struct btrfs_fs_info *fs_info) argument 3708 struct btrfs_fs_info *fs_info = container_of(work, struct btrfs_fs_info, local 3818 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, int init_flags) argument 3884 qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info) argument 3903 btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info) argument 3946 btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, bool interruptible) argument 3973 btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info) argument 4366 struct btrfs_fs_info *fs_info = root->fs_info; local 4412 struct btrfs_fs_info *fs_info = root->fs_info; local 4428 struct btrfs_fs_info *fs_info = root->fs_info; local 4446 qgroup_convert_meta(struct btrfs_fs_info *fs_info, u64 ref_root, int num_bytes) argument 4488 struct btrfs_fs_info *fs_info = root->fs_info; local 4592 struct btrfs_fs_info *fs_info = subvol_root->fs_info; local 4698 struct btrfs_fs_info *fs_info = root->fs_info; local 4794 btrfs_free_squota_rsv(struct btrfs_fs_info *fs_info, u64 root, u64 rsv_bytes) argument 4805 btrfs_record_squota_delta(struct btrfs_fs_info *fs_info, struct btrfs_squota_delta *delta) argument [all...] |
H A D | sysfs.h | 31 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info); 36 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info); 37 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info); 39 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info, 44 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info, 46 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info); 47 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info); 48 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
|
H A D | relocation.h | 15 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start); 19 int btrfs_recover_relocation(struct btrfs_fs_info *fs_info); 29 int btrfs_should_cancel_balance(const struct btrfs_fs_info *fs_info); 30 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr); 32 u64 btrfs_get_reloc_bg_bytenr(const struct btrfs_fs_info *fs_info);
|
H A D | subpage.c | 67 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct address_space *mapping) argument 69 if (fs_info->sectorsize >= PAGE_SIZE) 84 if (fs_info->nodesize < PAGE_SIZE) 120 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, argument 133 if (!btrfs_is_subpage(fs_info, folio->mapping) || folio_test_private(folio)) 136 subpage = btrfs_alloc_subpage(fs_info, type); 144 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, struct folio *folio) argument 149 if (!btrfs_is_subpage(fs_info, folio->mapping) || !folio_test_private(folio)) 157 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, argument 163 ASSERT(fs_info 195 btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) argument 209 btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) argument 224 btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 253 btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 275 btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 327 btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 347 btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 390 btrfs_folio_start_writer_lock(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 407 btrfs_folio_end_writer_lock(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 429 btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 444 btrfs_subpage_clear_uptodate(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 458 btrfs_subpage_set_dirty(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 482 btrfs_subpage_clear_and_test_dirty(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 499 btrfs_subpage_clear_dirty(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 509 btrfs_subpage_set_writeback(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 524 btrfs_subpage_clear_writeback(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 541 btrfs_subpage_set_ordered(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 555 btrfs_subpage_clear_ordered(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 570 btrfs_subpage_set_checked(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 585 btrfs_subpage_clear_checked(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 706 btrfs_folio_assert_not_dirty(const struct btrfs_fs_info *fs_info, struct folio *folio) argument 736 btrfs_folio_unlock_writer(struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument 772 btrfs_subpage_dump_bitmap(const struct btrfs_fs_info *fs_info, struct folio *folio, u64 start, u32 len) argument [all...] |
H A D | space-info.c | 196 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) argument 198 if (btrfs_is_zoned(fs_info)) 199 return fs_info->zone_size; 209 if (fs_info->fs_devices->total_rw_bytes > 50ULL * SZ_1G) 261 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) argument 269 disk_super = fs_info->super_copy; 278 ret = create_space_info(fs_info, flags); 284 ret = create_space_info(fs_info, flags); 287 ret = create_space_info(fs_info, flags); 292 ret = create_space_info(fs_info, flag 343 calc_available_free_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, enum btrfs_reserve_flush_enum flush) argument 411 btrfs_can_overcommit(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 bytes, enum btrfs_reserve_flush_enum flush) argument 444 btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) argument 508 dump_global_block_rsv(struct btrfs_fs_info *fs_info) argument 517 __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info) argument 535 btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info, u64 bytes, int dump_block_groups) argument 577 calc_reclaim_items_nr(const struct btrfs_fs_info *fs_info, u64 to_reclaim) argument 595 shrink_delalloc(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 to_reclaim, bool wait_ordered, bool for_preempt) argument 726 flush_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 num_bytes, enum btrfs_flush_state state, bool for_preempt) argument 830 btrfs_calc_reclaim_metadata_size(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) argument 855 need_preemptive_reclaim(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) argument 967 steal_from_global_rsv(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) argument 1014 maybe_fail_all_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) argument 1066 struct btrfs_fs_info *fs_info; local 1154 struct btrfs_fs_info *fs_info; local 1286 struct btrfs_fs_info *fs_info; local 1361 btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info) argument 1387 priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, const enum btrfs_flush_state *states, int states_nr) argument 1446 priority_reclaim_data_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) argument 1474 wait_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) argument 1521 handle_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, u64 start_ns, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) argument 1577 maybe_clamp_preempt(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) argument 1626 __reserve_bytes(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) argument 1775 btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) argument 1803 btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes, enum btrfs_reserve_flush_enum flush) argument 1825 btrfs_dump_space_info_for_trans_abort(struct btrfs_fs_info *fs_info) argument [all...] |
H A D | scrub.c | 188 struct btrfs_fs_info *fs_info; member in struct:scrub_ctx 249 static int init_scrub_stripe(struct btrfs_fs_info *fs_info, argument 256 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; 274 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, 275 fs_info->csum_size, GFP_KERNEL); 291 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) argument 293 while (atomic_read(&fs_info->scrub_pause_req)) { 294 mutex_unlock(&fs_info->scrub_lock); 295 wait_event(fs_info->scrub_pause_wait, 296 atomic_read(&fs_info 301 scrub_pause_on(struct btrfs_fs_info *fs_info) argument 307 scrub_pause_off(struct btrfs_fs_info *fs_info) argument 317 scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) argument 342 scrub_setup_ctx( struct btrfs_fs_info *fs_info, int is_dev_replace) argument 398 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; local 481 struct btrfs_fs_info *fs_info = dev->fs_info; local 584 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 593 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 600 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 691 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 753 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 786 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 820 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 871 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1012 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1129 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 1156 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1197 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 1336 struct btrfs_fs_info *fs_info = path->nodes[0]->fs_info; local 1375 struct btrfs_fs_info *fs_info = extent_root->fs_info; local 1461 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1482 fill_one_extent_info(struct btrfs_fs_info *fs_info, struct scrub_stripe *stripe, u64 extent_start, u64 extent_len, u64 extent_flags, u64 extent_gen) argument 1532 struct btrfs_fs_info *fs_info = bg->fs_info; local 1654 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 1726 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1780 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; local 1816 struct btrfs_fs_info *fs_info = sctx->fs_info; local 1930 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2100 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2231 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2399 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2439 struct btrfs_fs_info *fs_info = cache->fs_info; local 2461 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2755 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2795 struct btrfs_fs_info *fs_info = sctx->fs_info; local 2843 scrub_workers_put(struct btrfs_fs_info *fs_info) argument 2860 scrub_workers_get(struct btrfs_fs_info *fs_info) argument 2892 btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start, u64 end, struct btrfs_scrub_progress *progress, int readonly, int is_dev_replace) argument 3064 btrfs_scrub_pause(struct btrfs_fs_info *fs_info) argument 3079 btrfs_scrub_continue(struct btrfs_fs_info *fs_info) argument 3085 btrfs_scrub_cancel(struct btrfs_fs_info *fs_info) argument 3108 struct btrfs_fs_info *fs_info = dev->fs_info; local 3129 btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid, struct btrfs_scrub_progress *progress) argument [all...] |
H A D | defrag.h | 23 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info); 24 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info); 27 static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info) argument
|
H A D | block-rsv.h | 63 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, 65 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, 68 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, 70 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, 74 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, 83 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, 86 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info); 87 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info); 88 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info); 92 int btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info, 94 btrfs_unuse_block_rsv(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u32 blocksize) argument [all...] |
H A D | messages.c | 115 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function, argument 118 struct super_block *sb = fs_info->sb; 138 btrfs_state_to_string(fs_info, statestr); 160 WRITE_ONCE(fs_info->fs_error, error); 169 btrfs_discard_stop(fs_info); 173 btrfs_info(fs_info, "forced readonly"); 211 void __cold _btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) argument 242 if (fs_info) { 245 btrfs_state_to_string(fs_info, statestr); 247 fs_info 258 btrfs_warn_32bit_limit(struct btrfs_fs_info *fs_info) argument 270 btrfs_err_32bit_limit(struct btrfs_fs_info *fs_info) argument 288 __btrfs_panic(const struct btrfs_fs_info *fs_info, const char *function, unsigned int line, int error, const char *fmt, ...) argument [all...] |
H A D | fs.h | 127 * main phase. The fs_info::balance_ctl is initialized. 877 #define page_to_fs_info(_page) (page_to_inode(_page)->root->fs_info) 878 #define folio_to_fs_info(_folio) (folio_to_inode(_folio)->root->fs_info) 881 struct inode *: (_inode)))->root->fs_info) 883 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) argument 885 return READ_ONCE(fs_info->generation); 888 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) argument 890 WRITE_ONCE(fs_info->generation, gen); 893 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) argument 895 return READ_ONCE(fs_info 898 btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) argument 903 btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, u64 gen) argument 909 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) argument 918 btrfs_csum_bytes_to_leaves( const struct btrfs_fs_info *fs_info, u64 csum_bytes) argument 930 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, unsigned num_items) argument 940 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, unsigned num_items) argument 949 btrfs_is_zoned(const struct btrfs_fs_info *fs_info) argument 957 count_max_extents(struct btrfs_fs_info *fs_info, u64 size) argument 1018 btrfs_fs_closing(struct btrfs_fs_info *fs_info) argument 1037 btrfs_need_cleaner_sleep(struct btrfs_fs_info *fs_info) argument 1043 btrfs_wake_unfinished_drop(struct btrfs_fs_info *fs_info) argument 1058 btrfs_is_testing(struct btrfs_fs_info *fs_info) argument 1069 btrfs_is_testing(struct btrfs_fs_info *fs_info) argument [all...] |
/linux-master/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 24 [TEST_ALLOC_FS_INFO] = "cannot allocate fs_info", 98 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) argument 106 extent_io_tree_init(fs_info, &dev->alloc_state, 0); 108 list_add(&dev->dev_list, &fs_info->fs_devices->devices); 121 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), local 124 if (!fs_info) 125 return fs_info; 126 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), 128 if (!fs_info->fs_devices) { 129 kfree(fs_info); 154 btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) argument 215 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length) argument 253 btrfs_init_dummy_trans(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) argument [all...] |