/kernel/linux/linux-5.10/fs/btrfs/ |
D | transaction.h | 137 struct btrfs_root *root; 153 struct btrfs_root *root; 155 struct btrfs_root *snap; 202 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, 205 struct btrfs_root *root, 207 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); 208 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root); 209 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root); 210 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root); 212 struct btrfs_root *root); [all …]
|
D | inode-map.h | 6 void btrfs_init_free_ino_ctl(struct btrfs_root *root); 7 void btrfs_unpin_free_ino(struct btrfs_root *root); 8 void btrfs_return_ino(struct btrfs_root *root, u64 objectid); 9 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid); 10 int btrfs_save_ino_cache(struct btrfs_root *root, 13 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); 14 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
|
D | disk-io.h | 62 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, 65 struct btrfs_root *root); 68 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, 70 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, 72 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, 81 struct btrfs_root *root); 88 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info); 98 static inline struct btrfs_root *btrfs_grab_root(struct btrfs_root *root) in btrfs_grab_root() 107 void btrfs_put_root(struct btrfs_root *root); 124 struct btrfs_root *root); [all …]
|
D | qgroup.h | 364 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 366 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 369 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans() 375 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc() 382 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, 386 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans() 394 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc() 405 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root); 413 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes); 421 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root); [all …]
|
D | tree-log.h | 63 struct btrfs_root *root, struct btrfs_log_ctx *ctx); 64 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 67 int btrfs_recover_log_trees(struct btrfs_root *tree_root); 72 struct btrfs_root *root, 76 struct btrfs_root *root, 79 void btrfs_end_log_trans(struct btrfs_root *root); 80 void btrfs_pin_log_trans(struct btrfs_root *root);
|
D | ctree.h | 588 struct btrfs_root *extent_root; 589 struct btrfs_root *tree_root; 590 struct btrfs_root *chunk_root; 591 struct btrfs_root *dev_root; 592 struct btrfs_root *fs_root; 593 struct btrfs_root *csum_root; 594 struct btrfs_root *quota_root; 595 struct btrfs_root *uuid_root; 596 struct btrfs_root *free_space_root; 597 struct btrfs_root *data_reloc_root; [all …]
|
D | root-tree.c | 64 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() 118 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() 197 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() 209 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() 213 struct btrfs_root *root; in btrfs_find_orphan_roots() 297 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root() 321 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() 395 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() 459 struct btrfs_root *root) in btrfs_update_root_times() 486 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata() [all …]
|
D | relocation.c | 119 struct btrfs_root *extent_root; 290 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead() 311 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root() 320 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root() 322 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root() 350 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root() 355 struct btrfs_root *root = NULL; in find_reloc_root() 362 root = (struct btrfs_root *)node->data; in find_reloc_root() 537 struct btrfs_root *src, in clone_backref_node() 538 struct btrfs_root *dest) in clone_backref_node() [all …]
|
D | free-space-cache.h | 100 struct inode *lookup_free_ino_inode(struct btrfs_root *root, 102 int create_free_ino_inode(struct btrfs_root *root, 106 struct btrfs_root *root); 107 int btrfs_write_out_ino_cache(struct btrfs_root *root, 129 u64 btrfs_find_ino_for_alloc(struct btrfs_root *fs_root);
|
D | dir-item.c | 20 struct btrfs_root *root, in insert_with_overflow() 56 struct btrfs_root *root, in btrfs_insert_xattr_item() 114 struct btrfs_root *root = dir->root; in btrfs_insert_dir_item() 180 struct btrfs_root *root, in btrfs_lookup_dir_item() 204 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, in btrfs_check_dir_item_collision() 273 struct btrfs_root *root, in btrfs_lookup_dir_index_item() 296 btrfs_search_dir_index_item(struct btrfs_root *root, in btrfs_search_dir_index_item() 344 struct btrfs_root *root, in btrfs_lookup_xattr() 408 struct btrfs_root *root, in btrfs_delete_one_dir_name()
|
D | inode-map.c | 16 static void fail_caching_thread(struct btrfs_root *root) in fail_caching_thread() 31 struct btrfs_root *root = data; in caching_kthread() 139 static void start_caching(struct btrfs_root *root) in start_caching() 189 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() 216 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() 252 void btrfs_unpin_free_ino(struct btrfs_root *root) in btrfs_unpin_free_ino() 369 void btrfs_init_free_ino_ctl(struct btrfs_root *root) in btrfs_init_free_ino_ctl() 397 int btrfs_save_ino_cache(struct btrfs_root *root, in btrfs_save_ino_cache() 529 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() 564 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid()
|
D | tree-log.c | 97 struct btrfs_root *root, struct btrfs_inode *inode, 101 struct btrfs_root *root, 104 struct btrfs_root *root, 105 struct btrfs_root *log, 138 struct btrfs_root *root, in start_log_trans() 193 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans() 214 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans() 223 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans() 281 struct btrfs_root *replay_dest; 291 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, [all …]
|
D | backref.h | 16 struct btrfs_root *fs_root; 50 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, 56 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, 60 int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid, 64 int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr, 181 struct btrfs_root *root;
|
D | block-rsv.h | 60 int btrfs_block_rsv_add(struct btrfs_root *root, 64 int btrfs_block_rsv_refill(struct btrfs_root *root, 83 struct btrfs_root *root,
|
D | locking.h | 102 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); 103 struct extent_buffer *__btrfs_read_lock_root_node(struct btrfs_root *root, 106 static inline struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node()
|
D | transaction.c | 157 struct btrfs_root *root, *tmp; in switch_commit_roots() 176 struct btrfs_root, root_list); in switch_commit_roots() 400 struct btrfs_root *root, in record_root_in_trans() 461 struct btrfs_root *root) in btrfs_add_dropped_root() 480 struct btrfs_root *root) in btrfs_record_root_in_trans() 544 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root() 558 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction() 754 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction() 762 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv() 769 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction() [all …]
|
D | uuid-tree.c | 22 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup() 86 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add() 151 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove() 229 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem() 261 struct btrfs_root *subvol_root; in btrfs_check_uuid_tree_entry() 293 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
|
D | props.h | 25 struct btrfs_root *root, 26 struct btrfs_root *parent_root);
|
D | disk-io.c | 54 static void btrfs_destroy_ordered_extents(struct btrfs_root *root); 57 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root); 781 struct btrfs_root *root; in btree_csum_one_bio() 1022 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root() 1099 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root() 1102 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root() 1110 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root() 1112 struct btrfs_root *root; in btrfs_alloc_dummy_root() 1128 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree() 1133 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() [all …]
|
D | btrfs_inode.h | 59 struct btrfs_root *root; 246 const struct btrfs_root *root) in btrfs_inode_hash() 285 struct btrfs_root *root = inode->root; in btrfs_is_free_space_inode() 374 struct btrfs_root *root = inode->root; in btrfs_print_data_csum_error()
|
D | delayed-inode.h | 45 struct btrfs_root *root; 113 struct btrfs_root *root, struct inode *inode); 118 void btrfs_kill_all_delayed_nodes(struct btrfs_root *root);
|
D | inode-item.c | 75 struct btrfs_root *root, in btrfs_lookup_inode_extref() 99 struct btrfs_root *root, in btrfs_del_inode_extref() 172 struct btrfs_root *root, in btrfs_del_inode_ref() 252 struct btrfs_root *root, in btrfs_insert_inode_extref() 310 struct btrfs_root *root, in btrfs_insert_inode_ref() 389 struct btrfs_root *root, in btrfs_insert_empty_inode() 403 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
|
D | props.c | 114 static int iterate_object_props(struct btrfs_root *root, in iterate_object_props() 231 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator() 246 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_load_inode_props() 327 struct btrfs_root *root = BTRFS_I(inode)->root; in inherit_props() 407 struct btrfs_root *root, in btrfs_subvol_inherit_props() 408 struct btrfs_root *parent_root) in btrfs_subvol_inherit_props()
|
D | orphan.c | 10 struct btrfs_root *root, u64 offset) in btrfs_insert_orphan_item() 31 struct btrfs_root *root, u64 offset) in btrfs_del_orphan_item()
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
D | qgroup-tests.c | 14 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() 67 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() 151 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() 207 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup() 310 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs() 456 struct btrfs_root *root; in btrfs_test_qgroups() 457 struct btrfs_root *tmp_root; in btrfs_test_qgroups()
|