/fs/btrfs/ |
D | transaction.h | 128 struct btrfs_root *root; 144 struct btrfs_root *root; 146 struct btrfs_root *snap; 191 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, 194 struct btrfs_root *root, 196 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); 197 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root); 198 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root); 199 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root); 201 struct btrfs_root *root); [all …]
|
D | disk-io.h | 61 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root, 63 int btrfs_init_fs_root(struct btrfs_root *root); 64 struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, 67 struct btrfs_root *root); 70 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, 73 static inline struct btrfs_root * 84 struct btrfs_root *root); 85 void btrfs_free_fs_root(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_fs_root(struct btrfs_root *root) in btrfs_grab_fs_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 | qgroup.h | 352 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 354 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 357 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans() 363 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc() 370 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, 374 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans() 382 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc() 393 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root); 401 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes); 409 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root); [all …]
|
D | ctree.h | 528 struct btrfs_root *extent_root; 529 struct btrfs_root *tree_root; 530 struct btrfs_root *chunk_root; 531 struct btrfs_root *dev_root; 532 struct btrfs_root *fs_root; 533 struct btrfs_root *csum_root; 534 struct btrfs_root *quota_root; 535 struct btrfs_root *uuid_root; 536 struct btrfs_root *free_space_root; 539 struct btrfs_root *log_root_tree; [all …]
|
D | tree-log.h | 47 struct btrfs_root *root, struct btrfs_log_ctx *ctx); 48 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 51 int btrfs_recover_log_trees(struct btrfs_root *tree_root); 58 struct btrfs_root *root, 62 struct btrfs_root *root, 65 void btrfs_end_log_trans(struct btrfs_root *root); 66 void btrfs_pin_log_trans(struct btrfs_root *root);
|
D | backref.h | 15 struct btrfs_root *fs_root; 46 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, 52 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, 56 int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid, 60 int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr,
|
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() 176 struct btrfs_root *root, struct btrfs_path *path, in btrfs_lookup_match_dir() 210 struct btrfs_root *root, in btrfs_lookup_dir_item() 229 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, in btrfs_check_dir_item_collision() 307 struct btrfs_root *root, in btrfs_lookup_dir_index_item() 327 btrfs_search_dir_index_item(struct btrfs_root *root, in btrfs_search_dir_index_item() 375 struct btrfs_root *root, in btrfs_lookup_xattr() 436 struct btrfs_root *root, in btrfs_delete_one_dir_name()
|
D | tree-log.c | 95 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() 225 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans() 283 struct btrfs_root *replay_dest; 293 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, [all …]
|
D | relocation.c | 51 struct btrfs_root *root; 152 struct btrfs_root *extent_root; 520 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead() 540 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root() 549 static int should_ignore_root(struct btrfs_root *root) in should_ignore_root() 551 struct btrfs_root *reloc_root; in should_ignore_root() 578 static struct btrfs_root *find_reloc_root(struct reloc_control *rc, in find_reloc_root() 583 struct btrfs_root *root = NULL; in find_reloc_root() 589 root = (struct btrfs_root *)node->data; in find_reloc_root() 610 static struct btrfs_root *read_fs_root(struct btrfs_fs_info *fs_info, in read_fs_root() [all …]
|
D | root-tree.c | 66 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() 120 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() 199 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() 211 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots() 216 struct btrfs_root *root; in btrfs_find_orphan_roots() 332 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root() 356 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref() 430 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref() 494 struct btrfs_root *root) in btrfs_update_root_times() 521 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
|
D | free-space-cache.h | 72 struct inode *lookup_free_ino_inode(struct btrfs_root *root, 74 int create_free_ino_inode(struct btrfs_root *root, 78 struct btrfs_root *root); 79 int btrfs_write_out_ino_cache(struct btrfs_root *root, 98 u64 btrfs_find_ino_for_alloc(struct btrfs_root *fs_root);
|
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() 188 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() 215 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() 251 void btrfs_unpin_free_ino(struct btrfs_root *root) in btrfs_unpin_free_ino() 368 void btrfs_init_free_ino_ctl(struct btrfs_root *root) in btrfs_init_free_ino_ctl() 396 int btrfs_save_ino_cache(struct btrfs_root *root, in btrfs_save_ino_cache() 527 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() 562 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid()
|
D | transaction.c | 86 struct btrfs_root *root, *tmp; in switch_commit_roots() 104 struct btrfs_root, root_list); in switch_commit_roots() 286 struct btrfs_root *root, in record_root_in_trans() 347 struct btrfs_root *root) in btrfs_add_dropped_root() 366 struct btrfs_root *root) in btrfs_record_root_in_trans() 430 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root() 444 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction() 640 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction() 648 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv() 655 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction() [all …]
|
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); 596 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_readpage_end_io_hook() 842 struct btrfs_root *root; in btree_csum_one_bio() 1120 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root() 1192 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root() 1195 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root() 1203 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root() 1205 struct btrfs_root *root; in btrfs_alloc_dummy_root() 1222 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree() [all …]
|
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 | free-space-tree.c | 51 struct btrfs_root *root = trans->fs_info->free_space_root; in add_new_free_space_info() 85 struct btrfs_root *root = fs_info->free_space_root; in search_free_space_info() 112 struct btrfs_root *root, in btrfs_search_prev_slot() 187 struct btrfs_root *root = fs_info->free_space_root; in convert_free_space_to_bitmaps() 327 struct btrfs_root *root = fs_info->free_space_root; in convert_free_space_to_extents() 559 struct btrfs_root *root, struct btrfs_path *p) in free_space_next_bitmap() 588 struct btrfs_root *root = block_group->fs_info->free_space_root; in modify_free_space_bitmap() 701 struct btrfs_root *root = trans->fs_info->free_space_root; in remove_free_space_extent() 853 struct btrfs_root *root = trans->fs_info->free_space_root; in add_free_space_extent() 1048 struct btrfs_root *extent_root = trans->fs_info->extent_root; in populate_free_space_tree() [all …]
|
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 | 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 | ctree.c | 18 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root 20 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, 29 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, 126 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() 154 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node() 173 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node() 192 static void add_root_to_dirty_list(struct btrfs_root *root) in add_root_to_dirty_list() 219 struct btrfs_root *root, in btrfs_copy_root() 868 int btrfs_block_can_be_shared(struct btrfs_root *root, in btrfs_block_can_be_shared() 888 struct btrfs_root *root, in update_ref_for_cow() [all …]
|
D | btrfs_inode.h | 38 struct btrfs_root *root; 206 const struct btrfs_root *root) in btrfs_inode_hash() 245 struct btrfs_root *root = inode->root; in btrfs_is_free_space_inode() 362 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 | 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() 253 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);
|
/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()
|