Home
last modified time | relevance | path

Searched refs:fs_info (Results 1 - 25 of 259) sorted by relevance

1234567891011

/kernel/linux/linux-6.6/fs/btrfs/
H A Dmessages.h18 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_no_printk() 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 Ddisk-io.c63 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info);
64 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info);
66 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() argument
68 if (fs_info->csum_shash) in btrfs_free_csum_hash()
69 crypto_free_shash(fs_info->csum_shash); in btrfs_free_csum_hash()
77 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local
79 const int first_page_part = min_t(u32, PAGE_SIZE, fs_info->nodesize); in csum_tree_block()
80 SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); in csum_tree_block()
84 shash->tfm = fs_info in csum_tree_block()
144 btrfs_check_super_csum(struct btrfs_fs_info *fs_info, const struct btrfs_super_block *disk_sb) btrfs_check_super_csum() argument
169 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_repair_eb_io_failure() local
201 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_read_extent_buffer() local
246 struct btrfs_fs_info *fs_info = eb->fs_info; btree_csum_one_bio() local
313 struct btrfs_fs_info *fs_info = eb->fs_info; check_tree_block_fsid() local
339 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_validate_extent_buffer() local
476 struct btrfs_fs_info *fs_info; btree_writepages() local
522 struct btrfs_fs_info *fs_info = btrfs_sb(mapping->host->i_sb); btree_dirty_folio() local
578 btrfs_find_create_tree_block( struct btrfs_fs_info *fs_info, u64 bytenr, u64 owner_root, int level) btrfs_find_create_tree_block() argument
595 read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, struct btrfs_tree_parent_check *check) read_tree_block() argument
621 __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, u64 objectid) __setup_root() argument
699 btrfs_alloc_root(struct btrfs_fs_info *fs_info, u64 objectid, gfp_t flags) btrfs_alloc_root() argument
710 btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) btrfs_alloc_dummy_root() argument
746 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_global_root_insert() local
764 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_global_root_delete() local
771 btrfs_global_root(struct btrfs_fs_info *fs_info, struct btrfs_key *key) btrfs_global_root() argument
786 btrfs_global_root_id(struct btrfs_fs_info *fs_info, u64 bytenr) btrfs_global_root_id() argument
807 btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr) btrfs_csum_root() argument
818 btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr) btrfs_extent_root() argument
829 btrfs_block_group_root(struct btrfs_fs_info *fs_info) btrfs_block_group_root() argument
839 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_tree() local
907 alloc_log_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) alloc_log_tree() argument
951 btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) btrfs_init_log_root_tree() argument
977 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_log_tree() local
1019 struct btrfs_fs_info *fs_info = tree_root->fs_info; read_tree_root_path() local
1141 btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, u64 root_id) btrfs_lookup_fs_root() argument
1154 btrfs_get_global_root(struct btrfs_fs_info *fs_info, u64 objectid) btrfs_get_global_root() argument
1187 btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) btrfs_insert_fs_root() argument
1210 btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info) btrfs_check_leaked_roots() argument
1230 free_global_roots(struct btrfs_fs_info *fs_info) free_global_roots() argument
1242 btrfs_free_fs_info(struct btrfs_fs_info *fs_info) btrfs_free_fs_info() argument
1289 btrfs_get_root_ref(struct btrfs_fs_info *fs_info, u64 objectid, dev_t *anon_dev, bool check_ref) btrfs_get_root_ref() argument
1393 btrfs_get_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, bool check_ref) btrfs_get_fs_root() argument
1407 btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, dev_t *anon_dev) btrfs_get_new_fs_root() argument
1427 btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 objectid) btrfs_get_fs_root_commit_root() argument
1461 struct btrfs_fs_info *fs_info = arg; cleaner_kthread() local
1539 struct btrfs_fs_info *fs_info = root->fs_info; transaction_kthread() local
1719 read_backup_root(struct btrfs_fs_info *fs_info, u8 priority) read_backup_root() argument
1755 btrfs_stop_all_workers(struct btrfs_fs_info *fs_info) btrfs_stop_all_workers() argument
1793 free_global_root_pointers(struct btrfs_fs_info *fs_info) free_global_root_pointers() argument
1839 btrfs_free_fs_roots(struct btrfs_fs_info *fs_info) btrfs_free_fs_roots() argument
1866 btrfs_init_scrub(struct btrfs_fs_info *fs_info) btrfs_init_scrub() argument
1877 btrfs_init_balance(struct btrfs_fs_info *fs_info) btrfs_init_balance() argument
1890 struct btrfs_fs_info *fs_info = btrfs_sb(sb); btrfs_init_btree_inode() local
1926 btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info) btrfs_init_dev_replace_locks() argument
1933 btrfs_init_qgroup(struct btrfs_fs_info *fs_info) btrfs_init_qgroup() argument
1946 btrfs_init_workqueues(struct btrfs_fs_info *fs_info) btrfs_init_workqueues() argument
2006 btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) btrfs_init_csum_hash() argument
2044 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_replay_log() argument
2103 struct btrfs_fs_info *fs_info = tree_root->fs_info; load_global_roots_objectid() local
2208 btrfs_read_roots(struct btrfs_fs_info *fs_info) btrfs_read_roots() argument
2308 btrfs_validate_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb, int mirror_num) btrfs_validate_super() argument
2500 btrfs_validate_mount_super(struct btrfs_fs_info *fs_info) btrfs_validate_mount_super() argument
2511 btrfs_validate_write_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb) btrfs_validate_write_super() argument
2567 load_important_roots(struct btrfs_fs_info *fs_info) load_important_roots() argument
2584 init_tree_roots(struct btrfs_fs_info *fs_info) init_tree_roots() argument
2662 btrfs_init_fs_info(struct btrfs_fs_info *fs_info) btrfs_init_fs_info() argument
2798 init_mount_fs_info(struct btrfs_fs_info *fs_info, struct super_block *sb) init_mount_fs_info() argument
2840 struct btrfs_fs_info *fs_info = data; btrfs_uuid_rescan_kthread() local
2859 btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info) btrfs_check_uuid_tree() argument
2875 btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info) btrfs_cleanup_fs_roots() argument
2930 btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info) btrfs_clear_oneshot_options() argument
2940 btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info) btrfs_start_pre_rw_mount() argument
3069 btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount) btrfs_check_features() argument
3172 struct btrfs_fs_info *fs_info = btrfs_sb(sb); open_ctree() local
3757 struct btrfs_fs_info *fs_info = device->fs_info; write_dev_supers() local
4058 write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors) write_all_supers() argument
4171 btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) btrfs_drop_and_free_fs_root() argument
4195 btrfs_commit_super(struct btrfs_fs_info *fs_info) btrfs_commit_super() argument
4215 warn_about_uncommitted_trans(struct btrfs_fs_info *fs_info) warn_about_uncommitted_trans() argument
4257 close_ctree(struct btrfs_fs_info *fs_info) close_ctree() argument
4439 struct btrfs_fs_info *fs_info = buf->fs_info; btrfs_mark_buffer_dirty() local
4472 __btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info, int flush_delayed) __btrfs_btree_balance_dirty() argument
4495 btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info) btrfs_btree_balance_dirty() argument
4500 btrfs_btree_balance_dirty_nodelay(struct btrfs_fs_info *fs_info) btrfs_btree_balance_dirty_nodelay() argument
4505 btrfs_error_commit_super(struct btrfs_fs_info *fs_info) btrfs_error_commit_super() argument
4518 btrfs_drop_all_logs(struct btrfs_fs_info *fs_info) btrfs_drop_all_logs() argument
4563 btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info) btrfs_destroy_all_ordered_extents() argument
4593 btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info) btrfs_destroy_delayed_refs() argument
4702 btrfs_destroy_all_delalloc_inodes(struct btrfs_fs_info *fs_info) btrfs_destroy_all_delalloc_inodes() argument
4724 btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) btrfs_destroy_marked_extents() argument
4751 btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, struct extent_io_tree *unpin) btrfs_destroy_pinned_extent() argument
4801 btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) btrfs_cleanup_dirty_bgs() argument
4848 btrfs_free_all_qgroup_pertrans(struct btrfs_fs_info *fs_info) btrfs_free_all_qgroup_pertrans() argument
4874 btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) btrfs_cleanup_one_transaction() argument
4908 btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info) btrfs_cleanup_transaction() argument
[all...]
H A Dtransaction.c151 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
179 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local
188 down_write(&fs_info->commit_root_sem); in switch_commit_roots()
190 if (test_bit(BTRFS_FS_RELOC_RUNNING, &fs_info->flags)) in switch_commit_roots()
191 fs_info->last_reloc_trans = trans->transid; in switch_commit_roots()
210 btrfs_drop_and_free_fs_root(fs_info, root); in switch_commit_roots()
215 up_write(&fs_info->commit_root_sem); in switch_commit_roots()
252 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
265 join_transaction(struct btrfs_fs_info *fs_info, unsigned int type) join_transaction() argument
406 struct btrfs_fs_info *fs_info = root->fs_info; record_root_in_trans() local
466 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_dropped_root() local
485 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_record_root_in_trans() local
518 wait_current_trans(struct btrfs_fs_info *fs_info) wait_current_trans() argument
538 may_wait_transaction(struct btrfs_fs_info *fs_info, int type) may_wait_transaction() argument
551 struct btrfs_fs_info *fs_info = root->fs_info; need_reserve_reloc_root() local
567 struct btrfs_fs_info *fs_info = root->fs_info; start_transaction() local
865 struct btrfs_fs_info *fs_info = commit->fs_info; wait_for_commit() local
907 btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid) btrfs_wait_for_commit() argument
966 btrfs_throttle(struct btrfs_fs_info *fs_info) btrfs_throttle() argument
988 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_trans_release_metadata() local
1074 btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) btrfs_write_marked_extents() argument
1128 __btrfs_wait_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) __btrfs_wait_marked_extents() argument
1166 btrfs_wait_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) btrfs_wait_extents() argument
1183 struct btrfs_fs_info *fs_info = log_root->fs_info; btrfs_wait_tree_log_extents() local
1216 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_write_and_wait_transaction() local
1250 struct btrfs_fs_info *fs_info = root->fs_info; update_cowonly_root() local
1283 struct btrfs_fs_info *fs_info = trans->fs_info; commit_cowonly_roots() local
1369 btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info) btrfs_maybe_wake_unfinished_drop() argument
1398 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_dead_root() local
1419 struct btrfs_fs_info *fs_info = trans->fs_info; commit_fs_roots() local
1536 struct btrfs_fs_info *fs_info = src->fs_info; qgroup_account_snapshot() local
1633 struct btrfs_fs_info *fs_info = trans->fs_info; create_pending_snapshot() local
1920 update_super_roots(struct btrfs_fs_info *fs_info) update_super_roots() argument
1972 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_commit_transaction_async() local
1998 struct btrfs_fs_info *fs_info = trans->fs_info; cleanup_transaction() local
2081 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_cleanup_pending_block_groups() local
2090 btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info) btrfs_start_delalloc_flush() argument
2114 btrfs_wait_delalloc_flush(struct btrfs_fs_info *fs_info) btrfs_wait_delalloc_flush() argument
2141 update_commit_stats(struct btrfs_fs_info *fs_info, ktime_t interval) update_commit_stats() argument
2152 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_commit_transaction() local
2611 btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info) btrfs_clean_one_deleted_snapshot() argument
2657 struct btrfs_fs_info *fs_info = trans->fs_info; __btrfs_abort_transaction() local
[all...]
H A Dqgroup.c63 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() argument
67 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add()
71 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() argument
75 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release()
89 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() argument
96 qgroup_rsv_add(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_add_by_qgroup()
99 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() argument
106 qgroup_rsv_release(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_release_by_qgroup()
160 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,
162 static void qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info);
165 find_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) find_qgroup_rb() argument
184 add_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) add_qgroup_rb() argument
219 __del_qgroup_rb(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) __del_qgroup_rb() argument
243 del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) del_qgroup_rb() argument
292 add_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) add_relation_rb() argument
304 del_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) del_relation_rb() argument
328 btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid, u64 rfer, u64 excl) btrfs_verify_qgroup_counts() argument
342 qgroup_mark_inconsistent(struct btrfs_fs_info *fs_info) qgroup_mark_inconsistent() argument
353 btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info) btrfs_read_qgroup_config() argument
549 btrfs_check_quota_leak(struct btrfs_fs_info *fs_info) btrfs_check_quota_leak() argument
586 btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info) btrfs_free_qgroup_config() argument
822 struct btrfs_fs_info *fs_info = trans->fs_info; update_qgroup_info_item() local
867 struct btrfs_fs_info *fs_info = trans->fs_info; update_qgroup_status_item() local
953 btrfs_quota_enable(struct btrfs_fs_info *fs_info) btrfs_quota_enable() argument
1229 btrfs_quota_disable(struct btrfs_fs_info *fs_info) btrfs_quota_disable() argument
1339 qgroup_dirty(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) qgroup_dirty() argument
1378 __qgroup_excl_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 ref_root, struct btrfs_qgroup *src, int sign) __qgroup_excl_accounting() argument
1455 quick_update_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 src, u64 dst, int sign) quick_update_accounting() argument
1484 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_add_qgroup_relation() local
1550 struct btrfs_fs_info *fs_info = trans->fs_info; __del_qgroup_relation() local
1615 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_del_qgroup_relation() local
1627 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_qgroup() local
1673 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_qgroup() local
1733 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_limit_qgroup() local
1807 btrfs_qgroup_trace_extent_nolock(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_qgroup_extent_record *record) btrfs_qgroup_trace_extent_nolock() argument
1898 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_extent() local
1928 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_leaf_items() local
2081 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_extent_swap() local
2205 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_new_subtree_blocks() local
2307 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_subtree_swap() local
2359 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_subtree() local
2486 qgroup_update_refcnt(struct btrfs_fs_info *fs_info, struct ulist *roots, struct ulist *tmp, struct ulist *qgroups, u64 seq, int update_old) qgroup_update_refcnt() argument
2575 qgroup_update_counters(struct btrfs_fs_info *fs_info, struct ulist *qgroups, u64 nr_old_roots, u64 nr_new_roots, u64 num_bytes, u64 seq) qgroup_update_counters() argument
2697 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_account_extent() local
2788 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_account_extents() local
2883 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_qgroups() local
2938 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_inherit() local
3158 struct btrfs_fs_info *fs_info = root->fs_info; qgroup_reserve() local
3216 btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, u64 ref_root, u64 num_bytes, enum btrfs_qgroup_rsv_type type) btrfs_qgroup_free_refroot() argument
3300 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_rescan_leaf() local
3387 rescan_should_stop(struct btrfs_fs_info *fs_info) rescan_should_stop() argument
3397 struct btrfs_fs_info *fs_info = container_of(work, struct btrfs_fs_info, btrfs_qgroup_rescan_worker() local
3504 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, int init_flags) qgroup_rescan_init() argument
3565 qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info) qgroup_rescan_zero_tracking() argument
3584 btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info) btrfs_qgroup_rescan() argument
3627 btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, bool interruptible) btrfs_qgroup_wait_for_completion() argument
3654 btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info) btrfs_qgroup_rescan_resume() argument
4043 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_reserve_meta() local
4085 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_free_meta_all_pertrans() local
4101 struct btrfs_fs_info *fs_info = root->fs_info; __btrfs_qgroup_free_meta() local
4119 qgroup_convert_meta(struct btrfs_fs_info *fs_info, u64 ref_root, int num_bytes) qgroup_convert_meta() argument
4155 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_convert_reserved_meta() local
4257 struct btrfs_fs_info *fs_info = subvol_root->fs_info; btrfs_qgroup_add_swapped_blocks() local
4363 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_trace_subtree_after_cow() local
[all...]
H A Ddelalloc-space.c119 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local
123 bytes = ALIGN(bytes, fs_info->sectorsize); in btrfs_alloc_data_chunk_ondemand()
128 return btrfs_reserve_data_bytes(fs_info, bytes, flush); in btrfs_alloc_data_chunk_ondemand()
135 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() local
140 len = round_up(start + len, fs_info->sectorsize) - in btrfs_check_data_free_space()
141 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space()
142 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space()
149 ret = btrfs_reserve_data_bytes(fs_info, le in btrfs_check_data_free_space()
173 btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, u64 len) btrfs_free_reserved_data_space_noquota() argument
194 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_free_reserved_data_space() local
220 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_inode_rsv_release() local
242 btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) btrfs_calculate_inode_block_rsv_size() argument
286 struct btrfs_fs_info *fs_info = inode->root->fs_info; calc_inode_reservations() local
311 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_delalloc_reserve_metadata() local
399 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_delalloc_release_metadata() local
428 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_delalloc_release_extents() local
[all...]
H A Dsubpage.c67 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page) in btrfs_is_subpage() argument
69 if (fs_info->sectorsize >= PAGE_SIZE) in btrfs_is_subpage()
85 if (fs_info->nodesize < PAGE_SIZE) in btrfs_is_subpage()
118 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_attach_subpage() argument
131 if (!btrfs_is_subpage(fs_info, page) || PagePrivate(page)) in btrfs_attach_subpage()
134 subpage = btrfs_alloc_subpage(fs_info, type); in btrfs_attach_subpage()
142 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info, in btrfs_detach_subpage() argument
148 if (!btrfs_is_subpage(fs_info, page) || !PagePrivate(page)) in btrfs_detach_subpage()
156 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info, in btrfs_alloc_subpage() argument
162 ASSERT(fs_info in btrfs_alloc_subpage()
194 btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct page *page) btrfs_page_inc_eb_refs() argument
209 btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct page *page) btrfs_page_dec_eb_refs() argument
225 btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_assert() argument
241 btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_start_reader() argument
252 btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_end_reader() argument
294 btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_start_writer() argument
308 btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_end_and_test_writer() argument
340 btrfs_page_start_writer_lock(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_page_start_writer_lock() argument
357 btrfs_page_end_writer_lock(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_page_end_writer_lock() argument
387 btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_set_uptodate() argument
402 btrfs_subpage_clear_uptodate(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_uptodate() argument
416 btrfs_subpage_set_dirty(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_set_dirty() argument
440 btrfs_subpage_clear_and_test_dirty(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_and_test_dirty() argument
457 btrfs_subpage_clear_dirty(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_dirty() argument
467 btrfs_subpage_set_writeback(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_set_writeback() argument
481 btrfs_subpage_clear_writeback(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_writeback() argument
498 btrfs_subpage_set_ordered(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_set_ordered() argument
512 btrfs_subpage_clear_ordered(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_ordered() argument
527 btrfs_subpage_set_checked(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_set_checked() argument
542 btrfs_subpage_clear_checked(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_clear_checked() argument
656 btrfs_page_assert_not_dirty(const struct btrfs_fs_info *fs_info, struct page *page) btrfs_page_assert_not_dirty() argument
687 btrfs_page_unlock_writer(struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_page_unlock_writer() argument
719 btrfs_subpage_dump_bitmap(const struct btrfs_fs_info *fs_info, struct page *page, u64 start, u32 len) btrfs_subpage_dump_bitmap() argument
[all...]
H A Dspace-info.c197 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size() argument
199 if (btrfs_is_zoned(fs_info)) in calc_chunk_size()
200 return fs_info->zone_size; in calc_chunk_size()
210 if (fs_info->fs_devices->total_rw_bytes > 50ULL * SZ_1G) in calc_chunk_size()
262 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() argument
270 disk_super = fs_info->super_copy; in btrfs_init_space_info()
279 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
285 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
288 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
293 ret = create_space_info(fs_info, flag in btrfs_init_space_info()
344 calc_available_free_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, enum btrfs_reserve_flush_enum flush) calc_available_free_space() argument
380 btrfs_can_overcommit(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 bytes, enum btrfs_reserve_flush_enum flush) btrfs_can_overcommit() argument
413 btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) btrfs_try_granting_tickets() argument
477 dump_global_block_rsv(struct btrfs_fs_info *fs_info) dump_global_block_rsv() argument
486 __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info) __btrfs_dump_space_info() argument
504 btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info, u64 bytes, int dump_block_groups) btrfs_dump_space_info() argument
546 calc_reclaim_items_nr(const struct btrfs_fs_info *fs_info, u64 to_reclaim) calc_reclaim_items_nr() argument
559 calc_delayed_refs_nr(const struct btrfs_fs_info *fs_info, u64 to_reclaim) calc_delayed_refs_nr() argument
576 shrink_delalloc(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 to_reclaim, bool wait_ordered, bool for_preempt) shrink_delalloc() argument
707 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) flush_space() argument
812 btrfs_calc_reclaim_metadata_size(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) btrfs_calc_reclaim_metadata_size() argument
837 need_preemptive_reclaim(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) need_preemptive_reclaim() argument
949 steal_from_global_rsv(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) steal_from_global_rsv() argument
995 maybe_fail_all_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) maybe_fail_all_tickets() argument
1047 struct btrfs_fs_info *fs_info; btrfs_async_reclaim_metadata_space() local
1135 struct btrfs_fs_info *fs_info; btrfs_preempt_reclaim_metadata_space() local
1267 struct btrfs_fs_info *fs_info; btrfs_async_reclaim_data_space() local
1342 btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info) btrfs_init_async_reclaim_work() argument
1368 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) priority_reclaim_metadata_space() argument
1427 priority_reclaim_data_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) priority_reclaim_data_space() argument
1455 wait_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) wait_reserve_ticket() argument
1502 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) handle_reserve_ticket() argument
1558 maybe_clamp_preempt(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) maybe_clamp_preempt() argument
1607 __reserve_bytes(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) __reserve_bytes() argument
1756 btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) btrfs_reserve_metadata_bytes() argument
1786 btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes, enum btrfs_reserve_flush_enum flush) btrfs_reserve_data_bytes() argument
1808 btrfs_dump_space_info_for_trans_abort(struct btrfs_fs_info *fs_info) btrfs_dump_space_info_for_trans_abort() argument
[all...]
H A Dscrub.c188 struct btrfs_fs_info *fs_info; member
250 static int init_scrub_stripe(struct btrfs_fs_info *fs_info, in init_scrub_stripe() argument
257 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in init_scrub_stripe()
275 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, in init_scrub_stripe()
276 fs_info->csum_size, GFP_KERNEL); in init_scrub_stripe()
292 static void __scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) in __scrub_blocked_if_needed() argument
294 while (atomic_read(&fs_info->scrub_pause_req)) { in __scrub_blocked_if_needed()
295 mutex_unlock(&fs_info->scrub_lock); in __scrub_blocked_if_needed()
296 wait_event(fs_info->scrub_pause_wait, in __scrub_blocked_if_needed()
297 atomic_read(&fs_info in __scrub_blocked_if_needed()
302 scrub_pause_on(struct btrfs_fs_info *fs_info) scrub_pause_on() argument
308 scrub_pause_off(struct btrfs_fs_info *fs_info) scrub_pause_off() argument
318 scrub_blocked_if_needed(struct btrfs_fs_info *fs_info) scrub_blocked_if_needed() argument
343 scrub_setup_ctx( struct btrfs_fs_info *fs_info, int is_dev_replace) scrub_setup_ctx() argument
399 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; scrub_print_warning_inode() local
482 struct btrfs_fs_info *fs_info = dev->fs_info; scrub_print_common_warning() local
585 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_stripe_get_page() local
594 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_stripe_get_page_offset() local
601 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_verify_one_metadata() local
692 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_verify_one_sector() local
754 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_verify_one_stripe() local
787 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_repair_read_endio() local
821 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_stripe_submit_repair_read() local
872 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_stripe_report_errors() local
1013 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_stripe_read_repair_worker() local
1130 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_write_endio() local
1157 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_submit_write_bio() local
1198 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; scrub_write_sectors() local
1337 struct btrfs_fs_info *fs_info = path->nodes[0]->fs_info; compare_extent_item_range() local
1376 struct btrfs_fs_info *fs_info = extent_root->fs_info; find_first_extent_item() local
1458 struct btrfs_fs_info *fs_info = sctx->fs_info; sync_write_pointer_for_zoned() local
1479 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) fill_one_extent_info() argument
1529 struct btrfs_fs_info *fs_info = bg->fs_info; scrub_find_fill_first_stripe() local
1651 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_submit_initial_read() local
1700 struct btrfs_fs_info *fs_info = stripe->bg->fs_info; stripe_has_metadata_error() local
1736 struct btrfs_fs_info *fs_info = sctx->fs_info; flush_scrub_stripes() local
1850 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_raid56_parity_stripe() local
2020 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_simple_mirror() local
2151 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_stripe() local
2320 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_chunk() local
2366 struct btrfs_fs_info *fs_info = cache->fs_info; finish_extent_writes_for_zoned() local
2388 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_enumerate_chunks() local
2682 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_one_super() local
2722 struct btrfs_fs_info *fs_info = sctx->fs_info; scrub_supers() local
2760 scrub_workers_put(struct btrfs_fs_info *fs_info) scrub_workers_put() argument
2777 scrub_workers_get(struct btrfs_fs_info *fs_info) scrub_workers_get() argument
2809 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) btrfs_scrub_dev() argument
2981 btrfs_scrub_pause(struct btrfs_fs_info *fs_info) btrfs_scrub_pause() argument
2996 btrfs_scrub_continue(struct btrfs_fs_info *fs_info) btrfs_scrub_continue() argument
3002 btrfs_scrub_cancel(struct btrfs_fs_info *fs_info) btrfs_scrub_cancel() argument
3025 struct btrfs_fs_info *fs_info = dev->fs_info; btrfs_scrub_cancel_dev() local
3046 btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid, struct btrfs_scrub_progress *progress) btrfs_scrub_progress() argument
[all...]
H A Dblock-rsv.c41 * successful we subtract fs_info->nodesize from ->reserved.
105 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() argument
154 btrfs_space_info_free_bytes_may_use(fs_info, in block_rsv_release_bytes()
184 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv() argument
189 rsv->space_info = btrfs_find_space_info(fs_info, in btrfs_init_metadata_block_rsv()
193 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv() argument
202 btrfs_init_metadata_block_rsv(fs_info, block_rsv, type); in btrfs_alloc_block_rsv()
206 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() argument
211 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL); in btrfs_free_block_rsv()
215 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_add() 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) btrfs_block_rsv_refill() argument
273 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u64 num_bytes, u64 *qgroup_to_release) btrfs_block_rsv_release() argument
324 btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_update_global_block_rsv() argument
401 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_init_root_block_rsv() local
424 btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_init_global_block_rsv() argument
441 btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_release_global_block_rsv() argument
459 struct btrfs_fs_info *fs_info = root->fs_info; get_block_rsv() local
481 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_use_block_rsv() local
550 btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *rsv) btrfs_check_trunc_cache_free_space() argument
[all...]
H A Ddev-replace.c69 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
73 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() argument
77 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace()
78 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_init_dev_replace()
106 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace()
107 btrfs_err(fs_info, in btrfs_init_dev_replace()
137 btrfs_warn(fs_info, in btrfs_init_dev_replace()
168 if (btrfs_find_device(fs_info->fs_devices, &args)) { in btrfs_init_dev_replace()
169 btrfs_err(fs_info, in btrfs_init_dev_replace()
179 dev_replace->tgtdev = btrfs_find_device(fs_info in btrfs_init_dev_replace()
243 btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, const char *device_path, struct btrfs_device *srcdev, struct btrfs_device **device_out) btrfs_init_dev_replace_tgtdev() argument
347 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_dev_replace() local
453 mark_block_group_to_copy(struct btrfs_fs_info *fs_info, struct btrfs_device *src_dev) mark_block_group_to_copy() argument
551 struct btrfs_fs_info *fs_info = cache->fs_info; btrfs_finish_block_group_to_copy() local
601 btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, const char *tgtdev_name, u64 srcdevid, const char *srcdev_name, int read_src) btrfs_dev_replace_start() argument
746 btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) btrfs_dev_replace_by_ioctl() argument
778 btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) btrfs_rm_dev_replace_blocked() argument
788 btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) btrfs_rm_dev_replace_unblocked() argument
825 btrfs_dev_replace_update_device_in_mapping_tree( struct btrfs_fs_info *fs_info, struct btrfs_device *srcdev, struct btrfs_device *tgtdev) btrfs_dev_replace_update_device_in_mapping_tree() argument
851 btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, int scrub_ret) btrfs_dev_replace_finishing() argument
1026 btrfs_dev_replace_progress(struct btrfs_fs_info *fs_info) btrfs_dev_replace_progress() argument
1050 btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) btrfs_dev_replace_status() argument
1070 btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info) btrfs_dev_replace_cancel() argument
1156 btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info) btrfs_dev_replace_suspend_for_unmount() argument
1183 btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info) btrfs_resume_dev_replace_async() argument
1236 struct btrfs_fs_info *fs_info = data; btrfs_dev_replace_kthread() local
1288 btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount) btrfs_bio_counter_sub() argument
1294 btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info) btrfs_bio_counter_inc_blocked() argument
[all...]
H A Ddisk-io.h32 void btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info);
33 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info);
34 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
37 struct btrfs_fs_info *fs_info,
42 void btrfs_clear_oneshot_options(struct btrfs_fs_info *fs_info);
43 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
44 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
49 void __cold close_ctree(struct btrfs_fs_info *fs_info);
50 int btrfs_validate_super(struct btrfs_fs_info *fs_info,
52 int btrfs_check_features(struct btrfs_fs_info *fs_info, boo
[all...]
H A Dsubpage.h76 bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, struct page *page);
79 int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
81 void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info,
85 struct btrfs_subpage *btrfs_alloc_subpage(const struct btrfs_fs_info *fs_info,
89 void btrfs_page_inc_eb_refs(const struct btrfs_fs_info *fs_info,
91 void btrfs_page_dec_eb_refs(const struct btrfs_fs_info *fs_info,
94 void btrfs_subpage_start_reader(const struct btrfs_fs_info *fs_info,
96 void btrfs_subpage_end_reader(const struct btrfs_fs_info *fs_info,
99 void btrfs_subpage_start_writer(const struct btrfs_fs_info *fs_info,
101 bool btrfs_subpage_end_and_test_writer(const struct btrfs_fs_info *fs_info,
[all...]
H A Dzoned.h43 int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info);
47 int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info);
66 int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info,
74 void btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical,
79 void btrfs_free_zone_cache(struct btrfs_fs_info *fs_info);
80 bool btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info);
81 void btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical,
83 int btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info);
84 int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info,
86 void btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info);
94 btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info) btrfs_get_dev_zone_info_all_devices() argument
117 btrfs_check_zoned_mode(const struct btrfs_fs_info *fs_info) btrfs_check_zoned_mode() argument
195 btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info, struct btrfs_eb_write_context *ctx) btrfs_check_meta_write_pointer() argument
230 btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical, u64 length) btrfs_zone_finish_endio() argument
238 btrfs_free_zone_cache(struct btrfs_fs_info *fs_info) btrfs_free_zone_cache() argument
240 btrfs_zoned_should_reclaim(struct btrfs_fs_info *fs_info) btrfs_zoned_should_reclaim() argument
245 btrfs_zoned_release_data_reloc_bg(struct btrfs_fs_info *fs_info, u64 logical, u64 length) btrfs_zoned_release_data_reloc_bg() argument
248 btrfs_zone_finish_one_bg(struct btrfs_fs_info *fs_info) btrfs_zone_finish_one_bg() argument
253 btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, bool do_finish) btrfs_zoned_activate_one_bg() argument
261 btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info) btrfs_check_active_zone_reservation() argument
311 btrfs_check_device_zone_type(const struct btrfs_fs_info *fs_info, struct block_device *bdev) btrfs_check_device_zone_type() argument
354 btrfs_zoned_meta_io_lock(struct btrfs_fs_info *fs_info) btrfs_zoned_meta_io_lock() argument
361 btrfs_zoned_meta_io_unlock(struct btrfs_fs_info *fs_info) btrfs_zoned_meta_io_unlock() argument
370 struct btrfs_fs_info *fs_info = bg->fs_info; btrfs_clear_treelog_bg() local
[all...]
H A Dfs.h90 * main phase. The fs_info::balance_ctl is initialized.
815 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen() argument
818 WRITE_ONCE(fs_info->last_root_drop_gen, gen); in btrfs_set_last_root_drop_gen()
821 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen() argument
823 return READ_ONCE(fs_info->last_root_drop_gen); in btrfs_get_last_root_drop_gen()
831 const struct btrfs_fs_info *fs_info, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
833 const u64 num_csums = csum_bytes >> fs_info->sectorsize_bits; in btrfs_csum_bytes_to_leaves()
835 return DIV_ROUND_UP_ULL(num_csums, fs_info->csums_per_leaf); in btrfs_csum_bytes_to_leaves()
842 static inline u64 btrfs_calc_insert_metadata_size(const struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size() argument
845 return (u64)fs_info in btrfs_calc_insert_metadata_size()
830 btrfs_csum_bytes_to_leaves( const struct btrfs_fs_info *fs_info, u64 csum_bytes) btrfs_csum_bytes_to_leaves() argument
852 btrfs_calc_metadata_size(const struct btrfs_fs_info *fs_info, unsigned num_items) btrfs_calc_metadata_size() argument
861 btrfs_is_zoned(const struct btrfs_fs_info *fs_info) btrfs_is_zoned() argument
869 count_max_extents(struct btrfs_fs_info *fs_info, u64 size) count_max_extents() argument
942 btrfs_fs_closing(struct btrfs_fs_info *fs_info) btrfs_fs_closing() argument
961 btrfs_need_cleaner_sleep(struct btrfs_fs_info *fs_info) btrfs_need_cleaner_sleep() argument
967 btrfs_wake_unfinished_drop(struct btrfs_fs_info *fs_info) btrfs_wake_unfinished_drop() argument
982 btrfs_is_testing(struct btrfs_fs_info *fs_info) btrfs_is_testing() argument
993 btrfs_is_testing(struct btrfs_fs_info *fs_info) btrfs_is_testing() argument
[all...]
H A Dtree-mod-log.c47 static inline u64 btrfs_inc_tree_mod_seq(struct btrfs_fs_info *fs_info) in btrfs_inc_tree_mod_seq() argument
49 return atomic64_inc_return(&fs_info->tree_mod_seq); in btrfs_inc_tree_mod_seq()
60 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_get_tree_mod_seq() argument
63 write_lock(&fs_info->tree_mod_log_lock); in btrfs_get_tree_mod_seq()
65 elem->seq = btrfs_inc_tree_mod_seq(fs_info); in btrfs_get_tree_mod_seq()
66 list_add_tail(&elem->list, &fs_info->tree_mod_seq_list); in btrfs_get_tree_mod_seq()
67 set_bit(BTRFS_FS_TREE_MOD_LOG_USERS, &fs_info->flags); in btrfs_get_tree_mod_seq()
69 write_unlock(&fs_info->tree_mod_log_lock); in btrfs_get_tree_mod_seq()
74 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info, in btrfs_put_tree_mod_seq() argument
87 write_lock(&fs_info in btrfs_put_tree_mod_seq()
133 tree_mod_log_insert(struct btrfs_fs_info *fs_info, struct tree_mod_elem *tm) tree_mod_log_insert() argument
173 tree_mod_dont_log(struct btrfs_fs_info *fs_info, struct extent_buffer *eb) tree_mod_dont_log() argument
191 tree_mod_need_log(const struct btrfs_fs_info *fs_info, struct extent_buffer *eb) tree_mod_need_log() argument
370 tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, struct tree_mod_elem **tm_list, int nritems) tree_mod_log_free_eb() argument
394 struct btrfs_fs_info *fs_info = old_root->fs_info; btrfs_tree_mod_log_insert_root() local
474 __tree_mod_log_search(struct btrfs_fs_info *fs_info, u64 start, u64 min_seq, bool smallest) __tree_mod_log_search() argument
521 tree_mod_log_search_oldest(struct btrfs_fs_info *fs_info, u64 start, u64 min_seq) tree_mod_log_search_oldest() argument
532 tree_mod_log_search(struct btrfs_fs_info *fs_info, u64 start, u64 min_seq) tree_mod_log_search() argument
544 struct btrfs_fs_info *fs_info = dst->fs_info; btrfs_tree_mod_log_eb_copy() local
791 tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct extent_buffer *eb, u64 time_seq, struct tree_mod_elem *first_tm) tree_mod_log_rewind() argument
912 btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct btrfs_path *path, struct extent_buffer *eb, u64 time_seq) btrfs_tree_mod_log_rewind() argument
974 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_get_old_root() local
1099 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info) btrfs_tree_mod_log_lowest_seq() argument
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Ddisk-io.c56 struct btrfs_fs_info *fs_info);
58 static int btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info,
61 static int btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info,
63 static int btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info);
64 static void btrfs_error_commit_super(struct btrfs_fs_info *fs_info);
100 static void btrfs_free_csum_hash(struct btrfs_fs_info *fs_info) in btrfs_free_csum_hash() argument
102 if (fs_info->csum_shash) in btrfs_free_csum_hash()
103 crypto_free_shash(fs_info->csum_shash); in btrfs_free_csum_hash()
211 struct btrfs_fs_info *fs_info = buf->fs_info; in csum_tree_block() local
304 btrfs_check_super_csum(struct btrfs_fs_info *fs_info, char *raw_disk_sb) btrfs_check_super_csum() argument
331 struct btrfs_fs_info *fs_info = eb->fs_info; btrfs_verify_level_key() local
398 struct btrfs_fs_info *fs_info = eb->fs_info; btree_read_extent_buffer_pages() local
450 csum_dirty_buffer(struct btrfs_fs_info *fs_info, struct page *page) csum_dirty_buffer() argument
499 struct btrfs_fs_info *fs_info = eb->fs_info; check_tree_block_fsid() local
533 struct btrfs_fs_info *fs_info; btrfs_validate_metadata_buffer() local
642 struct btrfs_fs_info *fs_info; end_workqueue_bio() local
748 btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct bio *bio, int mirror_num, unsigned long bio_flags, u64 bio_offset, void *private_data, extent_submit_bio_start_t *submit_bio_start) btrfs_wq_submit_bio() argument
806 check_async_write(struct btrfs_fs_info *fs_info, struct btrfs_inode *bi) check_async_write() argument
819 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); btrfs_submit_metadata_bio() local
883 struct btrfs_fs_info *fs_info; btree_writepages() local
950 readahead_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr) readahead_tree_block() argument
966 btrfs_find_create_tree_block( struct btrfs_fs_info *fs_info, u64 bytenr) btrfs_find_create_tree_block() argument
983 read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, u64 parent_transid, int level, struct btrfs_key *first_key) read_tree_block() argument
1006 struct btrfs_fs_info *fs_info = buf->fs_info; btrfs_clean_tree_block() local
1022 __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, u64 objectid) __setup_root() argument
1099 btrfs_alloc_root(struct btrfs_fs_info *fs_info, u64 objectid, gfp_t flags) btrfs_alloc_root() argument
1110 btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) btrfs_alloc_dummy_root() argument
1131 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_tree() local
1201 alloc_log_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) alloc_log_tree() argument
1239 btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) btrfs_init_log_root_tree() argument
1255 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_log_tree() local
1289 struct btrfs_fs_info *fs_info = tree_root->fs_info; read_tree_root_path() local
1412 btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, u64 root_id) btrfs_lookup_fs_root() argument
1426 btrfs_get_global_root(struct btrfs_fs_info *fs_info, u64 objectid) btrfs_get_global_root() argument
1451 btrfs_insert_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) btrfs_insert_fs_root() argument
1474 btrfs_check_leaked_roots(struct btrfs_fs_info *fs_info) btrfs_check_leaked_roots() argument
1494 btrfs_free_fs_info(struct btrfs_fs_info *fs_info) btrfs_free_fs_info() argument
1541 btrfs_get_root_ref(struct btrfs_fs_info *fs_info, u64 objectid, dev_t anon_dev, bool check_ref) btrfs_get_root_ref() argument
1635 btrfs_get_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, bool check_ref) btrfs_get_fs_root() argument
1649 btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, u64 objectid, dev_t anon_dev) btrfs_get_new_fs_root() argument
1669 btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, struct btrfs_path *path, u64 objectid) btrfs_get_fs_root_commit_root() argument
1723 struct btrfs_fs_info *fs_info = root->fs_info; cleaner_kthread() local
1791 struct btrfs_fs_info *fs_info = root->fs_info; transaction_kthread() local
1964 read_backup_root(struct btrfs_fs_info *fs_info, u8 priority) read_backup_root() argument
2000 btrfs_stop_all_workers(struct btrfs_fs_info *fs_info) btrfs_stop_all_workers() argument
2076 btrfs_free_fs_roots(struct btrfs_fs_info *fs_info) btrfs_free_fs_roots() argument
2103 btrfs_init_scrub(struct btrfs_fs_info *fs_info) btrfs_init_scrub() argument
2114 btrfs_init_balance(struct btrfs_fs_info *fs_info) btrfs_init_balance() argument
2124 btrfs_init_btree_inode(struct btrfs_fs_info *fs_info) btrfs_init_btree_inode() argument
2150 btrfs_init_dev_replace_locks(struct btrfs_fs_info *fs_info) btrfs_init_dev_replace_locks() argument
2157 btrfs_init_qgroup(struct btrfs_fs_info *fs_info) btrfs_init_qgroup() argument
2169 btrfs_init_workqueues(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_init_workqueues() argument
2243 btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) btrfs_init_csum_hash() argument
2281 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) btrfs_replay_log() argument
2332 btrfs_read_roots(struct btrfs_fs_info *fs_info) btrfs_read_roots() argument
2432 validate_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb, int mirror_num) validate_super() argument
2603 btrfs_validate_mount_super(struct btrfs_fs_info *fs_info) btrfs_validate_mount_super() argument
2614 btrfs_validate_write_super(struct btrfs_fs_info *fs_info, struct btrfs_super_block *sb) btrfs_validate_write_super() argument
2643 init_tree_roots(struct btrfs_fs_info *fs_info) init_tree_roots() argument
2738 btrfs_init_fs_info(struct btrfs_fs_info *fs_info) btrfs_init_fs_info() argument
2855 init_mount_fs_info(struct btrfs_fs_info *fs_info, struct super_block *sb) init_mount_fs_info() argument
2894 struct btrfs_fs_info *fs_info = (struct btrfs_fs_info *)data; btrfs_uuid_rescan_kthread() local
2913 btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info) btrfs_check_uuid_tree() argument
2939 struct btrfs_fs_info *fs_info = btrfs_sb(sb); open_ctree() local
3600 struct btrfs_fs_info *fs_info = device->fs_info; write_dev_supers() local
3789 check_barrier_error(struct btrfs_fs_info *fs_info) check_barrier_error() argument
3884 write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors) write_all_supers() argument
3997 btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) btrfs_drop_and_free_fs_root() argument
4029 btrfs_cleanup_fs_roots(struct btrfs_fs_info *fs_info) btrfs_cleanup_fs_roots() argument
4079 btrfs_commit_super(struct btrfs_fs_info *fs_info) btrfs_commit_super() argument
4099 close_ctree(struct btrfs_fs_info *fs_info) close_ctree() argument
4272 struct btrfs_fs_info *fs_info; btrfs_mark_buffer_dirty() local
4311 __btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info, int flush_delayed) __btrfs_btree_balance_dirty() argument
4334 btrfs_btree_balance_dirty(struct btrfs_fs_info *fs_info) btrfs_btree_balance_dirty() argument
4339 btrfs_btree_balance_dirty_nodelay(struct btrfs_fs_info *fs_info) btrfs_btree_balance_dirty_nodelay() argument
4351 btrfs_error_commit_super(struct btrfs_fs_info *fs_info) btrfs_error_commit_super() argument
4364 btrfs_drop_all_logs(struct btrfs_fs_info *fs_info) btrfs_drop_all_logs() argument
4409 btrfs_destroy_all_ordered_extents(struct btrfs_fs_info *fs_info) btrfs_destroy_all_ordered_extents() argument
4441 btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info) btrfs_destroy_delayed_refs() argument
4559 btrfs_destroy_all_delalloc_inodes(struct btrfs_fs_info *fs_info) btrfs_destroy_all_delalloc_inodes() argument
4583 btrfs_destroy_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) btrfs_destroy_marked_extents() argument
4616 btrfs_destroy_pinned_extent(struct btrfs_fs_info *fs_info, struct extent_io_tree *unpin) btrfs_destroy_pinned_extent() argument
4670 btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) btrfs_cleanup_dirty_bgs() argument
4717 btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, struct btrfs_fs_info *fs_info) btrfs_cleanup_one_transaction() argument
4749 btrfs_cleanup_transaction(struct btrfs_fs_info *fs_info) btrfs_cleanup_transaction() argument
[all...]
H A Ddev-replace.c65 static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
69 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info) in btrfs_init_dev_replace() argument
72 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace()
73 struct btrfs_dev_replace *dev_replace = &fs_info->dev_replace; in btrfs_init_dev_replace()
98 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
100 btrfs_err(fs_info, in btrfs_init_dev_replace()
130 btrfs_warn(fs_info, in btrfs_init_dev_replace()
161 if (btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
163 btrfs_err(fs_info, in btrfs_init_dev_replace()
173 dev_replace->srcdev = btrfs_find_device(fs_info in btrfs_init_dev_replace()
238 btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, const char *device_path, struct btrfs_device *srcdev, struct btrfs_device **device_out) btrfs_init_dev_replace_tgtdev() argument
336 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_dev_replace() local
450 btrfs_dev_replace_start(struct btrfs_fs_info *fs_info, const char *tgtdev_name, u64 srcdevid, const char *srcdev_name, int read_src) btrfs_dev_replace_start() argument
569 btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) btrfs_dev_replace_by_ioctl() argument
602 btrfs_rm_dev_replace_blocked(struct btrfs_fs_info *fs_info) btrfs_rm_dev_replace_blocked() argument
612 btrfs_rm_dev_replace_unblocked(struct btrfs_fs_info *fs_info) btrfs_rm_dev_replace_unblocked() argument
649 btrfs_dev_replace_update_device_in_mapping_tree( struct btrfs_fs_info *fs_info, struct btrfs_device *srcdev, struct btrfs_device *tgtdev) btrfs_dev_replace_update_device_in_mapping_tree() argument
675 btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, int scrub_ret) btrfs_dev_replace_finishing() argument
854 btrfs_dev_replace_progress(struct btrfs_fs_info *fs_info) btrfs_dev_replace_progress() argument
878 btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, struct btrfs_ioctl_dev_replace_args *args) btrfs_dev_replace_status() argument
898 btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info) btrfs_dev_replace_cancel() argument
984 btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info) btrfs_dev_replace_suspend_for_unmount() argument
1011 btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info) btrfs_resume_dev_replace_async() argument
1064 struct btrfs_fs_info *fs_info = data; btrfs_dev_replace_kthread() local
1116 btrfs_bio_counter_inc_noblocked(struct btrfs_fs_info *fs_info) btrfs_bio_counter_inc_noblocked() argument
1121 btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount) btrfs_bio_counter_sub() argument
1127 btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info) btrfs_bio_counter_inc_blocked() argument
[all...]
H A Dtransaction.c128 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
156 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() local
160 down_write(&fs_info->commit_root_sem); in switch_commit_roots()
180 btrfs_drop_and_free_fs_root(fs_info, root); in switch_commit_roots()
212 &fs_info->caching_block_groups, list) { in switch_commit_roots()
223 up_write(&fs_info->commit_root_sem); in switch_commit_roots()
257 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_trans_release_chunk_metadata() local
264 btrfs_block_rsv_release(fs_info, in btrfs_trans_release_chunk_metadata()
272 join_transaction(struct btrfs_fs_info *fs_info, unsigned int type) join_transaction() argument
404 struct btrfs_fs_info *fs_info = root->fs_info; record_root_in_trans() local
464 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_dropped_root() local
483 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_record_root_in_trans() local
515 wait_current_trans(struct btrfs_fs_info *fs_info) wait_current_trans() argument
534 may_wait_transaction(struct btrfs_fs_info *fs_info, int type) may_wait_transaction() argument
547 struct btrfs_fs_info *fs_info = root->fs_info; need_reserve_reloc_root() local
563 struct btrfs_fs_info *fs_info = root->fs_info; start_transaction() local
842 btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid) btrfs_wait_for_commit() argument
901 btrfs_throttle(struct btrfs_fs_info *fs_info) btrfs_throttle() argument
908 struct btrfs_fs_info *fs_info = trans->fs_info; should_end_transaction() local
931 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_trans_release_metadata() local
1014 btrfs_write_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages, int mark) btrfs_write_marked_extents() argument
1070 __btrfs_wait_marked_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) __btrfs_wait_marked_extents() argument
1108 btrfs_wait_extents(struct btrfs_fs_info *fs_info, struct extent_io_tree *dirty_pages) btrfs_wait_extents() argument
1125 struct btrfs_fs_info *fs_info = log_root->fs_info; btrfs_wait_tree_log_extents() local
1158 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_write_and_wait_transaction() local
1192 struct btrfs_fs_info *fs_info = root->fs_info; update_cowonly_root() local
1225 struct btrfs_fs_info *fs_info = trans->fs_info; commit_cowonly_roots() local
1311 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_add_dead_root() local
1326 struct btrfs_fs_info *fs_info = trans->fs_info; commit_fs_roots() local
1429 struct btrfs_fs_info *fs_info = src->fs_info; qgroup_account_snapshot() local
1515 struct btrfs_fs_info *fs_info = trans->fs_info; create_pending_snapshot() local
1796 update_super_roots(struct btrfs_fs_info *fs_info) update_super_roots() argument
1848 wait_current_trans_commit_start(struct btrfs_fs_info *fs_info, struct btrfs_transaction *trans) wait_current_trans_commit_start() argument
1860 wait_current_trans_commit_start_and_unblock( struct btrfs_fs_info *fs_info, struct btrfs_transaction *trans) wait_current_trans_commit_start_and_unblock() argument
1899 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_commit_transaction_async() local
1946 struct btrfs_fs_info *fs_info = trans->fs_info; cleanup_transaction() local
2010 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_cleanup_pending_block_groups() local
2021 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_start_delalloc_flush() local
2058 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_wait_delalloc_flush() local
2080 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_commit_transaction() local
2481 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_clean_one_deleted_snapshot() local
2511 btrfs_apply_pending_changes(struct btrfs_fs_info *fs_info) btrfs_apply_pending_changes() argument
[all...]
H A Dqgroup.c69 static void qgroup_rsv_add(struct btrfs_fs_info *fs_info, in qgroup_rsv_add() argument
73 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add()
77 static void qgroup_rsv_release(struct btrfs_fs_info *fs_info, in qgroup_rsv_release() argument
81 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release()
95 static void qgroup_rsv_add_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_add_by_qgroup() argument
102 qgroup_rsv_add(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_add_by_qgroup()
105 static void qgroup_rsv_release_by_qgroup(struct btrfs_fs_info *fs_info, in qgroup_rsv_release_by_qgroup() argument
112 qgroup_rsv_release(fs_info, dest, src->rsv.values[i], i); in qgroup_rsv_release_by_qgroup()
166 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,
168 static void qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info);
171 find_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) find_qgroup_rb() argument
190 add_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) add_qgroup_rb() argument
224 __del_qgroup_rb(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) __del_qgroup_rb() argument
248 del_qgroup_rb(struct btrfs_fs_info *fs_info, u64 qgroupid) del_qgroup_rb() argument
261 add_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) add_relation_rb() argument
286 del_relation_rb(struct btrfs_fs_info *fs_info, u64 memberid, u64 parentid) del_relation_rb() argument
310 btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid, u64 rfer, u64 excl) btrfs_verify_qgroup_counts() argument
328 btrfs_read_qgroup_config(struct btrfs_fs_info *fs_info) btrfs_read_qgroup_config() argument
524 btrfs_check_quota_leak(struct btrfs_fs_info *fs_info) btrfs_check_quota_leak() argument
561 btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info) btrfs_free_qgroup_config() argument
797 struct btrfs_fs_info *fs_info = trans->fs_info; update_qgroup_info_item() local
842 struct btrfs_fs_info *fs_info = trans->fs_info; update_qgroup_status_item() local
929 btrfs_quota_enable(struct btrfs_fs_info *fs_info) btrfs_quota_enable() argument
1198 btrfs_quota_disable(struct btrfs_fs_info *fs_info) btrfs_quota_disable() argument
1306 qgroup_dirty(struct btrfs_fs_info *fs_info, struct btrfs_qgroup *qgroup) qgroup_dirty() argument
1327 __qgroup_excl_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 ref_root, struct btrfs_qgroup *src, int sign) __qgroup_excl_accounting() argument
1404 quick_update_accounting(struct btrfs_fs_info *fs_info, struct ulist *tmp, u64 src, u64 dst, int sign) quick_update_accounting() argument
1433 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_add_qgroup_relation() local
1499 struct btrfs_fs_info *fs_info = trans->fs_info; __del_qgroup_relation() local
1564 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_del_qgroup_relation() local
1576 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_create_qgroup() local
1622 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_remove_qgroup() local
1682 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_limit_qgroup() local
1756 btrfs_qgroup_trace_extent_nolock(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_qgroup_extent_record *record) btrfs_qgroup_trace_extent_nolock() argument
1791 btrfs_qgroup_trace_extent_post(struct btrfs_fs_info *fs_info, struct btrfs_qgroup_extent_record *qrecord) btrfs_qgroup_trace_extent_post() argument
1821 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_extent() local
1851 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_leaf_items() local
2005 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_extent_swap() local
2142 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_new_subtree_blocks() local
2254 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_trace_subtree_swap() local
2306 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_trace_subtree() local
2420 qgroup_update_refcnt(struct btrfs_fs_info *fs_info, struct ulist *roots, struct ulist *tmp, struct ulist *qgroups, u64 seq, int update_old) qgroup_update_refcnt() argument
2509 qgroup_update_counters(struct btrfs_fs_info *fs_info, struct ulist *qgroups, u64 nr_old_roots, u64 nr_new_roots, u64 num_bytes, u64 seq) qgroup_update_counters() argument
2631 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_account_extent() local
2721 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_account_extents() local
2798 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_run_qgroups() local
2855 struct btrfs_fs_info *fs_info = trans->fs_info; btrfs_qgroup_inherit() local
3075 struct btrfs_fs_info *fs_info = root->fs_info; qgroup_reserve() local
3155 btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info, u64 ref_root, u64 num_bytes, enum btrfs_qgroup_rsv_type type) btrfs_qgroup_free_refroot() argument
3239 struct btrfs_fs_info *fs_info = trans->fs_info; qgroup_rescan_leaf() local
3320 rescan_should_stop(struct btrfs_fs_info *fs_info) rescan_should_stop() argument
3329 struct btrfs_fs_info *fs_info = container_of(work, struct btrfs_fs_info, btrfs_qgroup_rescan_worker() local
3432 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, int init_flags) qgroup_rescan_init() argument
3491 qgroup_rescan_zero_tracking(struct btrfs_fs_info *fs_info) qgroup_rescan_zero_tracking() argument
3510 btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info) btrfs_qgroup_rescan() argument
3552 btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info, bool interruptible) btrfs_qgroup_wait_for_completion() argument
3579 btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info) btrfs_qgroup_rescan_resume() argument
3985 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_reserve_meta() local
4026 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_free_meta_all_pertrans() local
4042 struct btrfs_fs_info *fs_info = root->fs_info; __btrfs_qgroup_free_meta() local
4060 qgroup_convert_meta(struct btrfs_fs_info *fs_info, u64 ref_root, int num_bytes) qgroup_convert_meta() argument
4107 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_convert_reserved_meta() local
4209 struct btrfs_fs_info *fs_info = subvol_root->fs_info; btrfs_qgroup_add_swapped_blocks() local
4316 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_qgroup_trace_subtree_after_cow() local
[all...]
H A Dspace-info.c221 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info() argument
229 disk_super = fs_info->super_copy; in btrfs_init_space_info()
238 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
244 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
247 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
252 ret = create_space_info(fs_info, flags); in btrfs_init_space_info()
298 static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, in calc_available_free_space() argument
307 profile = btrfs_system_alloc_profile(fs_info); in calc_available_free_space()
309 profile = btrfs_metadata_alloc_profile(fs_info); in calc_available_free_space()
311 avail = atomic64_read(&fs_info in calc_available_free_space()
334 btrfs_can_overcommit(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 bytes, enum btrfs_reserve_flush_enum flush) btrfs_can_overcommit() argument
367 btrfs_try_granting_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) btrfs_try_granting_tickets() argument
415 __btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info) __btrfs_dump_space_info() argument
439 btrfs_dump_space_info(struct btrfs_fs_info *fs_info, struct btrfs_space_info *info, u64 bytes, int dump_block_groups) btrfs_dump_space_info() argument
469 calc_reclaim_items_nr(struct btrfs_fs_info *fs_info, u64 to_reclaim) calc_reclaim_items_nr() argument
487 shrink_delalloc(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 to_reclaim, bool wait_ordered) shrink_delalloc() argument
573 may_commit_transaction(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) may_commit_transaction() argument
671 flush_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 num_bytes, int state) flush_space() argument
753 btrfs_calc_reclaim_metadata_size(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) btrfs_calc_reclaim_metadata_size() argument
801 need_do_async_reclaim(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 used) need_do_async_reclaim() argument
818 steal_from_global_rsv(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) steal_from_global_rsv() argument
861 maybe_fail_all_tickets(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info) maybe_fail_all_tickets() argument
923 struct btrfs_fs_info *fs_info; btrfs_async_reclaim_metadata_space() local
1055 struct btrfs_fs_info *fs_info; btrfs_async_reclaim_data_space() local
1115 btrfs_init_async_reclaim_work(struct btrfs_fs_info *fs_info) btrfs_init_async_reclaim_work() argument
1138 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) priority_reclaim_metadata_space() argument
1168 priority_reclaim_data_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) priority_reclaim_data_space() argument
1183 wait_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket) wait_reserve_ticket() argument
1227 handle_reserve_ticket(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, struct reserve_ticket *ticket, enum btrfs_reserve_flush_enum flush) handle_reserve_ticket() argument
1312 __reserve_bytes(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, u64 orig_bytes, enum btrfs_reserve_flush_enum flush) __reserve_bytes() argument
1428 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_reserve_metadata_bytes() local
1460 btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes, enum btrfs_reserve_flush_enum flush) btrfs_reserve_data_bytes() argument
[all...]
H A Dreada.c80 struct btrfs_fs_info *fs_info; member
86 static void reada_start_machine(struct btrfs_fs_info *fs_info);
87 static void __reada_start_machine(struct btrfs_fs_info *fs_info);
94 static void __readahead_hook(struct btrfs_fs_info *fs_info, in __readahead_hook() argument
159 btrfs_debug(fs_info, in __readahead_hook()
192 reada_extent_put(fs_info, re); /* one ref for each entry */ in __readahead_hook()
200 struct btrfs_fs_info *fs_info = eb->fs_info; in btree_readahead_hook() local
205 spin_lock(&fs_info->reada_lock); in btree_readahead_hook()
206 re = radix_tree_lookup(&fs_info in btree_readahead_hook()
227 struct btrfs_fs_info *fs_info = dev->fs_info; reada_find_zone() local
299 reada_find_extent(struct btrfs_fs_info *fs_info, u64 logical, struct btrfs_key *top) reada_find_extent() argument
488 reada_extent_put(struct btrfs_fs_info *fs_info, struct reada_extent *re) reada_extent_put() argument
551 struct btrfs_fs_info *fs_info = rc->fs_info; reada_add_block() local
647 reada_tree_block_flagged(struct btrfs_fs_info *fs_info, u64 bytenr, int mirror_num, struct extent_buffer **eb) reada_tree_block_flagged() argument
678 struct btrfs_fs_info *fs_info = dev->fs_info; reada_start_machine_dev() local
795 __reada_start_machine(struct btrfs_fs_info *fs_info) __reada_start_machine() argument
826 reada_start_machine(struct btrfs_fs_info *fs_info) reada_start_machine() argument
843 dump_devs(struct btrfs_fs_info *fs_info, int all) dump_devs() argument
987 struct btrfs_fs_info *fs_info = rc->fs_info; btrfs_reada_wait() local
1007 struct btrfs_fs_info *fs_info = rc->fs_info; btrfs_reada_wait() local
1039 struct btrfs_fs_info *fs_info = dev->fs_info; btrfs_reada_remove_dev() local
[all...]
H A Ddelalloc-space.c117 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_alloc_data_chunk_ondemand() local
121 bytes = ALIGN(bytes, fs_info->sectorsize); in btrfs_alloc_data_chunk_ondemand()
126 return btrfs_reserve_data_bytes(fs_info, bytes, flush); in btrfs_alloc_data_chunk_ondemand()
132 struct btrfs_fs_info *fs_info = inode->root->fs_info; in btrfs_check_data_free_space() local
136 len = round_up(start + len, fs_info->sectorsize) - in btrfs_check_data_free_space()
137 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space()
138 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space()
147 btrfs_free_reserved_data_space_noquota(fs_info, le in btrfs_check_data_free_space()
161 btrfs_free_reserved_data_space_noquota(struct btrfs_fs_info *fs_info, u64 len) btrfs_free_reserved_data_space_noquota() argument
182 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_free_reserved_data_space() local
206 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_inode_rsv_release() local
228 btrfs_calculate_inode_block_rsv_size(struct btrfs_fs_info *fs_info, struct btrfs_inode *inode) btrfs_calculate_inode_block_rsv_size() argument
267 calc_inode_reservations(struct btrfs_fs_info *fs_info, u64 num_bytes, u64 *meta_reserve, u64 *qgroup_reserve) calc_inode_reservations() argument
289 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_delalloc_reserve_metadata() local
373 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_delalloc_release_metadata() local
400 struct btrfs_fs_info *fs_info = inode->root->fs_info; btrfs_delalloc_release_extents() local
[all...]
H A Dblock-rsv.c38 * successful we subtract fs_info->nodesize from ->reserved.
102 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes() argument
151 btrfs_space_info_free_bytes_may_use(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() argument
186 rsv->space_info = btrfs_find_space_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() argument
199 btrfs_init_metadata_block_rsv(fs_info, block_rsv, type); in btrfs_alloc_block_rsv()
203 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv() argument
208 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL); in btrfs_free_block_rsv()
275 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release() argument
326 btrfs_cond_migrate_bytes(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *dest, u64 num_bytes, int min_factor) btrfs_cond_migrate_bytes() argument
351 btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_update_global_block_rsv() argument
416 btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_init_global_block_rsv() argument
441 btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info) btrfs_release_global_block_rsv() argument
459 struct btrfs_fs_info *fs_info = root->fs_info; get_block_rsv() local
480 struct btrfs_fs_info *fs_info = root->fs_info; btrfs_use_block_rsv() local
[all...]
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dbtrfs-tests.c24 [TEST_ALLOC_FS_INFO] = "cannot allocate fs_info",
97 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() argument
107 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device()
120 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() local
123 if (!fs_info) in btrfs_alloc_dummy_fs_info()
124 return fs_info; in btrfs_alloc_dummy_fs_info()
125 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info()
127 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info()
128 kfree(fs_info); in btrfs_alloc_dummy_fs_info()
131 INIT_LIST_HEAD(&fs_info in btrfs_alloc_dummy_fs_info()
153 btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) btrfs_free_dummy_fs_info() argument
214 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length) btrfs_alloc_dummy_block_group() argument
252 btrfs_init_dummy_trans(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) btrfs_init_dummy_trans() argument
[all...]
/kernel/linux/linux-5.10/fs/btrfs/tests/
H A Dbtrfs-tests.c23 [TEST_ALLOC_FS_INFO] = "cannot allocate fs_info",
89 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_device() argument
99 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device()
112 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info() local
115 if (!fs_info) in btrfs_alloc_dummy_fs_info()
116 return fs_info; in btrfs_alloc_dummy_fs_info()
117 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info()
119 if (!fs_info->fs_devices) { in btrfs_alloc_dummy_fs_info()
120 kfree(fs_info); in btrfs_alloc_dummy_fs_info()
123 INIT_LIST_HEAD(&fs_info in btrfs_alloc_dummy_fs_info()
144 btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info) btrfs_free_dummy_fs_info() argument
204 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length) btrfs_alloc_dummy_block_group() argument
242 btrfs_init_dummy_trans(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info) btrfs_init_dummy_trans() argument
[all...]

Completed in 30 milliseconds

1234567891011