/linux-6.6.21/fs/btrfs/ |
D | disk-io.h | 58 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, 61 struct btrfs_root *root); 64 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, 66 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, 68 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, 71 int btrfs_global_root_insert(struct btrfs_root *root); 72 void btrfs_global_root_delete(struct btrfs_root *root); 73 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info, 75 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr); 76 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr); [all …]
|
D | ctree.h | 192 struct btrfs_root { struct 198 struct btrfs_root *log_root; argument 199 struct btrfs_root *reloc_root; argument 338 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly() argument 344 static inline bool btrfs_root_dead(const struct btrfs_root *root) in btrfs_root_dead() 350 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id() 516 int btrfs_previous_item(struct btrfs_root *root, 519 int btrfs_previous_extent_item(struct btrfs_root *root, 524 struct extent_buffer *btrfs_root_node(struct btrfs_root *root); 525 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, [all …]
|
D | transaction.h | 158 struct btrfs_root *root; 160 struct btrfs_root *snap; 235 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, 238 struct btrfs_root *root, 240 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); 241 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root); 242 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root); 243 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root); 245 struct btrfs_root *root); 248 void btrfs_add_dead_root(struct btrfs_root *root); [all …]
|
D | dir-item.h | 6 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, 12 struct btrfs_root *root, 17 struct btrfs_root *root, 20 struct btrfs_dir_item *btrfs_search_dir_index_item(struct btrfs_root *root, 24 struct btrfs_root *root, 28 struct btrfs_root *root, 33 struct btrfs_root *root,
|
D | qgroup.h | 379 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 381 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 385 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans() 392 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc() 401 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, 405 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans() 413 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc() 424 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root); 432 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes); 440 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root); [all …]
|
D | inode-item.h | 9 struct btrfs_root; 80 struct btrfs_root *root, 83 struct btrfs_root *root, const struct fscrypt_str *name, 86 struct btrfs_root *root, const struct fscrypt_str *name, 89 struct btrfs_root *root, 92 struct btrfs_root *root, struct btrfs_path *path, 97 struct btrfs_root *root,
|
D | root-tree.h | 6 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, 9 void btrfs_subvolume_release_metadata(struct btrfs_root *root, 18 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, 22 struct btrfs_root *root, 25 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, 32 void btrfs_update_root_times(struct btrfs_trans_handle *trans, struct btrfs_root *root);
|
D | file-item.h | 40 struct btrfs_root *root, u64 bytenr, u64 len); 43 struct btrfs_root *root, u64 objectid, u64 pos, 46 struct btrfs_root *root, 50 struct btrfs_root *root, 54 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end, 57 int btrfs_lookup_csums_list(struct btrfs_root *root, u64 start, u64 end, 60 int btrfs_lookup_csums_bitmap(struct btrfs_root *root, struct btrfs_path *path,
|
D | tree-log.h | 83 struct btrfs_root *root, struct btrfs_log_ctx *ctx); 84 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 87 int btrfs_recover_log_trees(struct btrfs_root *tree_root); 92 struct btrfs_root *root, 96 struct btrfs_root *root, 99 void btrfs_end_log_trans(struct btrfs_root *root); 100 void btrfs_pin_log_trans(struct btrfs_root *root);
|
D | relocation.h | 7 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root); 9 struct btrfs_root *root); 13 struct btrfs_root *root, struct extent_buffer *buf, 20 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr); 21 int btrfs_should_ignore_reloc_root(struct btrfs_root *root);
|
D | extent-tree.h | 107 int btrfs_cross_ref_exist(struct btrfs_root *root, 111 struct btrfs_root *root, 122 struct btrfs_root *root, u64 owner, 128 int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes, 131 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, 133 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, 144 int __must_check btrfs_drop_snapshot(struct btrfs_root *root, int update_ref, 147 struct btrfs_root *root,
|
D | locking.h | 171 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); 172 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root); 173 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root); 212 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb); 218 static inline void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, in btrfs_maybe_reset_lockdep_class()
|
D | disk-io.c | 621 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root() 699 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root() 702 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root() 710 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root() 712 struct btrfs_root *root; in btrfs_alloc_dummy_root() 730 const struct btrfs_root *a = rb_entry(a_node, struct btrfs_root, rb_node); in global_root_cmp() 731 const struct btrfs_root *b = rb_entry(b_node, struct btrfs_root, rb_node); in global_root_cmp() 739 const struct btrfs_root *root = rb_entry(node, struct btrfs_root, rb_node); in global_root_key_cmp() 744 int btrfs_global_root_insert(struct btrfs_root *root) in btrfs_global_root_insert() 762 void btrfs_global_root_delete(struct btrfs_root *root) in btrfs_global_root_delete() [all …]
|
D | btrfs_inode.h | 75 struct btrfs_root *root; 275 const struct btrfs_root *root) in btrfs_inode_hash() 419 void __btrfs_del_delalloc_inode(struct btrfs_root *root, struct btrfs_inode *inode); 432 int btrfs_start_delalloc_snapshot(struct btrfs_root *root, bool in_reclaim_context); 478 struct btrfs_root *root, struct btrfs_path *path); 479 struct inode *btrfs_iget(struct super_block *s, u64 ino, struct btrfs_root *root); 484 struct btrfs_root *root, struct btrfs_inode *inode); 486 struct btrfs_root *root, struct btrfs_inode *inode); 488 int btrfs_orphan_cleanup(struct btrfs_root *root);
|
D | root-tree.c | 67 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() 121 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() 200 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() 212 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() 216 struct btrfs_root *root; in btrfs_find_orphan_roots() 315 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root() 338 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() 410 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() 474 struct btrfs_root *root) in btrfs_update_root_times() 501 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata() [all …]
|
D | dir-item.c | 23 struct btrfs_root *root, in insert_with_overflow() 57 struct btrfs_root *root, in btrfs_insert_xattr_item() 115 struct btrfs_root *root = dir->root; in btrfs_insert_dir_item() 179 struct btrfs_root *root, struct btrfs_path *path, in btrfs_lookup_match_dir() 213 struct btrfs_root *root, in btrfs_lookup_dir_item() 233 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, in btrfs_check_dir_item_collision() 309 struct btrfs_root *root, in btrfs_lookup_dir_index_item() 329 btrfs_search_dir_index_item(struct btrfs_root *root, struct btrfs_path *path, in btrfs_search_dir_index_item() 357 struct btrfs_root *root, in btrfs_lookup_xattr() 418 struct btrfs_root *root, in btrfs_delete_one_dir_name()
|
D | tree-log.c | 111 struct btrfs_root *root, 114 struct btrfs_root *root, 115 struct btrfs_root *log, 118 static void wait_log_commit(struct btrfs_root *root, int transid); 149 struct btrfs_root *root, in start_log_trans() 153 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans() 236 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans() 265 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans() 274 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans() 310 struct btrfs_root *replay_dest; [all …]
|
D | relocation.c | 131 struct btrfs_root *extent_root; 302 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead() 323 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root() 332 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root() 334 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root() 362 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() 367 struct btrfs_root *root = NULL; in find_reloc_root() 550 struct btrfs_root *src, in clone_backref_node() 551 struct btrfs_root *dest) in clone_backref_node() 553 struct btrfs_root *reloc_root = src->reloc_root; in clone_backref_node() [all …]
|
D | transaction.c | 180 struct btrfs_root *root, *tmp; in switch_commit_roots() 206 struct btrfs_root, root_list); in switch_commit_roots() 403 struct btrfs_root *root, in record_root_in_trans() 464 struct btrfs_root *root) in btrfs_add_dropped_root() 483 struct btrfs_root *root) in btrfs_record_root_in_trans() 549 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root() 563 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction() 777 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction() 785 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv() 792 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction() [all …]
|
D | orphan.h | 7 struct btrfs_root *root, u64 offset); 9 struct btrfs_root *root, u64 offset);
|
D | block-rsv.h | 7 struct btrfs_root; 55 void btrfs_init_root_block_rsv(struct btrfs_root *root); 83 struct btrfs_root *root,
|
D | uuid-tree.c | 25 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() 89 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add() 153 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove() 231 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() 263 struct btrfs_root *subvol_root; in btrfs_check_uuid_tree_entry() 295 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
|
D | fs.h | 364 struct btrfs_root *tree_root; 365 struct btrfs_root *chunk_root; 366 struct btrfs_root *dev_root; 367 struct btrfs_root *fs_root; 368 struct btrfs_root *quota_root; 369 struct btrfs_root *uuid_root; 370 struct btrfs_root *data_reloc_root; 371 struct btrfs_root *block_group_root; 374 struct btrfs_root *log_root_tree;
|
D | free-space-tree.c | 24 static struct btrfs_root *btrfs_free_space_root( in btrfs_free_space_root() 73 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_new_free_space_info() 107 struct btrfs_root *root = btrfs_free_space_root(block_group); in search_free_space_info() 134 struct btrfs_root *root, in btrfs_search_prev_slot() 210 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_bitmaps() 348 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_extents() 580 struct btrfs_root *root, struct btrfs_path *p) in free_space_next_bitmap() 609 struct btrfs_root *root = btrfs_free_space_root(block_group); in modify_free_space_bitmap() 722 struct btrfs_root *root = btrfs_free_space_root(block_group); in remove_free_space_extent() 874 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_free_space_extent() [all …]
|
/linux-6.6.21/fs/btrfs/tests/ |
D | qgroup-tests.c | 16 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() 68 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() 119 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() 150 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() 205 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup() 317 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs() 474 struct btrfs_root *root; in btrfs_test_qgroups() 475 struct btrfs_root *tmp_root; in btrfs_test_qgroups()
|