Lines Matching refs:btrfs_root
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()
771 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info, in btrfs_global_root()
775 struct btrfs_root *root = NULL; in btrfs_global_root()
780 root = container_of(node, struct btrfs_root, rb_node); in btrfs_global_root()
807 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_csum_root()
818 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_extent_root()
829 struct btrfs_root *btrfs_block_group_root(struct btrfs_fs_info *fs_info) in btrfs_block_group_root()
836 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree()
841 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree()
842 struct btrfs_root *root; in btrfs_create_tree()
907 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree()
910 struct btrfs_root *root; in alloc_log_tree()
924 struct btrfs_root *root) in btrfs_alloc_log_tree_node()
954 struct btrfs_root *log_root; in btrfs_init_log_root_tree()
975 struct btrfs_root *root) in btrfs_add_log_tree()
978 struct btrfs_root *log_root; in btrfs_add_log_tree()
1013 static struct btrfs_root *read_tree_root_path(struct btrfs_root *tree_root, in read_tree_root_path()
1017 struct btrfs_root *root; in read_tree_root_path()
1076 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root()
1079 struct btrfs_root *root; in btrfs_read_tree_root()
1096 static int btrfs_init_fs_root(struct btrfs_root *root, dev_t anon_dev) in btrfs_init_fs_root()
1141 static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, in btrfs_lookup_fs_root()
1144 struct btrfs_root *root; in btrfs_lookup_fs_root()
1154 static struct btrfs_root *btrfs_get_global_root(struct btrfs_fs_info *fs_info, in btrfs_get_global_root()
1188 struct btrfs_root *root) in btrfs_insert_fs_root()
1213 struct btrfs_root *root; in btrfs_check_leaked_roots()
1219 struct btrfs_root, leak_list); in btrfs_check_leaked_roots()
1232 struct btrfs_root *root; in free_global_roots()
1236 root = rb_entry(node, struct btrfs_root, rb_node); in free_global_roots()
1289 static struct btrfs_root *btrfs_get_root_ref(struct btrfs_fs_info *fs_info, in btrfs_get_root_ref()
1293 struct btrfs_root *root; in btrfs_get_root_ref()
1393 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root()
1407 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info, in btrfs_get_new_fs_root()
1427 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info, in btrfs_get_fs_root_commit_root()
1431 struct btrfs_root *root; in btrfs_get_fs_root_commit_root()
1538 struct btrfs_root *root = arg; in transaction_kthread()
1658 struct btrfs_root *extent_root = btrfs_extent_root(info, 0); in backup_super_roots()
1659 struct btrfs_root *csum_root = btrfs_csum_root(info, 0); in backup_super_roots()
1783 static void free_root_extent_buffers(struct btrfs_root *root) in free_root_extent_buffers()
1795 struct btrfs_root *root, *tmp; in free_global_root_pointers()
1819 void btrfs_put_root(struct btrfs_root *root) in btrfs_put_root()
1842 struct btrfs_root *gang[8]; in btrfs_free_fs_roots()
1847 struct btrfs_root, root_list); in btrfs_free_fs_roots()
2049 struct btrfs_root *log_tree_root; in btrfs_replay_log()
2099 static int load_global_roots_objectid(struct btrfs_root *tree_root, in load_global_roots_objectid()
2104 struct btrfs_root *root; in load_global_roots_objectid()
2181 static int load_global_roots(struct btrfs_root *tree_root) in load_global_roots()
2210 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_read_roots()
2211 struct btrfs_root *root; in btrfs_read_roots()
2540 static int load_super_root(struct btrfs_root *root, u64 bytenr, u64 gen, int level) in load_super_root()
2588 struct btrfs_root *tree_root = fs_info->tree_root; in init_tree_roots()
2878 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots()
3173 struct btrfs_root *tree_root; in open_ctree()
3174 struct btrfs_root *chunk_root; in open_ctree()
4172 struct btrfs_root *root) in btrfs_drop_and_free_fs_root()
4197 struct btrfs_root *root = fs_info->tree_root; in btrfs_commit_super()
4520 struct btrfs_root *gang[8]; in btrfs_drop_all_logs()
4548 static void btrfs_destroy_ordered_extents(struct btrfs_root *root) in btrfs_destroy_ordered_extents()
4565 struct btrfs_root *root; in btrfs_destroy_all_ordered_extents()
4571 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_ordered_extents()
4669 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) in btrfs_destroy_delalloc_inodes()
4704 struct btrfs_root *root; in btrfs_destroy_all_delalloc_inodes()
4710 root = list_first_entry(&splice, struct btrfs_root, in btrfs_destroy_all_delalloc_inodes()
4850 struct btrfs_root *gang[8]; in btrfs_free_all_qgroup_pertrans()
4863 struct btrfs_root *root = gang[i]; in btrfs_free_all_qgroup_pertrans()
4961 int btrfs_init_root_free_objectid(struct btrfs_root *root) in btrfs_init_root_free_objectid()
4996 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_get_free_objectid()