Lines Matching refs:chunk_root
1579 return fs_info->chunk_root; in btrfs_get_fs_root()
1907 btrfs_set_backup_chunk_root(root_backup, info->chunk_root->node->start); in backup_super_roots()
1909 btrfs_header_generation(info->chunk_root->node)); in backup_super_roots()
1911 btrfs_header_level(info->chunk_root->node)); in backup_super_roots()
2061 free_root_extent_buffers(info->chunk_root); in free_root_pointers()
2610 struct btrfs_root *chunk_root; in open_ctree() local
2619 chunk_root = fs_info->chunk_root = btrfs_alloc_root(fs_info, GFP_KERNEL); in open_ctree()
2620 if (!tree_root || !chunk_root) { in open_ctree()
2966 __setup_root(chunk_root, fs_info, BTRFS_CHUNK_TREE_OBJECTID); in open_ctree()
2968 chunk_root->node = read_tree_block(fs_info, in open_ctree()
2971 if (IS_ERR(chunk_root->node) || in open_ctree()
2972 !extent_buffer_uptodate(chunk_root->node)) { in open_ctree()
2974 if (!IS_ERR(chunk_root->node)) in open_ctree()
2975 free_extent_buffer(chunk_root->node); in open_ctree()
2976 chunk_root->node = NULL; in open_ctree()
2979 btrfs_set_root_node(&chunk_root->root_item, chunk_root->node); in open_ctree()
2980 chunk_root->commit_root = btrfs_root_node(chunk_root); in open_ctree()
2982 read_extent_buffer(chunk_root->node, fs_info->chunk_tree_uuid, in open_ctree()
2983 btrfs_header_chunk_tree_uuid(chunk_root->node), BTRFS_UUID_SIZE); in open_ctree()