Lines Matching refs:extent_root

2586 	struct btrfs_root *extent_root = root->fs_info->extent_root;  in btrfs_remove_chunk()  local
2659 ret = btrfs_remove_block_group(trans, extent_root, chunk_offset, em); in btrfs_remove_chunk()
2661 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_remove_chunk()
2675 struct btrfs_root *extent_root; in btrfs_relocate_chunk() local
2680 extent_root = root->fs_info->extent_root; in btrfs_relocate_chunk()
2682 ret = btrfs_can_relocate(extent_root, chunk_offset); in btrfs_relocate_chunk()
2687 ret = btrfs_relocate_block_group(extent_root, chunk_offset); in btrfs_relocate_chunk()
4218 struct btrfs_root *extent_root, u64 start, in __btrfs_alloc_chunk() argument
4221 struct btrfs_fs_info *info = extent_root->fs_info; in __btrfs_alloc_chunk()
4437 map->sector_size = extent_root->sectorsize; in __btrfs_alloc_chunk()
4462 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in __btrfs_alloc_chunk()
4475 ret = btrfs_make_block_group(trans, extent_root, 0, type, in __btrfs_alloc_chunk()
4486 spin_lock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4487 extent_root->fs_info->free_chunk_space -= (stripe_size * in __btrfs_alloc_chunk()
4489 spin_unlock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4492 check_raid56_incompat_flag(extent_root->fs_info, type); in __btrfs_alloc_chunk()
4514 struct btrfs_root *extent_root, in btrfs_finish_chunk_alloc() argument
4518 struct btrfs_root *chunk_root = extent_root->fs_info->chunk_root; in btrfs_finish_chunk_alloc()
4531 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in btrfs_finish_chunk_alloc()
4537 btrfs_crit(extent_root->fs_info, "unable to find logical " in btrfs_finish_chunk_alloc()
4543 btrfs_crit(extent_root->fs_info, "found a bad mapping, wanted" in btrfs_finish_chunk_alloc()
4588 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); in btrfs_finish_chunk_alloc()
4594 btrfs_set_stack_chunk_sector_size(chunk, extent_root->sectorsize); in btrfs_finish_chunk_alloc()
4625 struct btrfs_root *extent_root, u64 type) in btrfs_alloc_chunk() argument
4629 ASSERT(mutex_is_locked(&extent_root->fs_info->chunk_mutex)); in btrfs_alloc_chunk()
4630 chunk_offset = find_next_chunk(extent_root->fs_info); in btrfs_alloc_chunk()
4631 return __btrfs_alloc_chunk(trans, extent_root, chunk_offset, type); in btrfs_alloc_chunk()
4642 struct btrfs_root *extent_root = fs_info->extent_root; in init_first_rw_device() local
4646 alloc_profile = btrfs_get_alloc_profile(extent_root, 0); in init_first_rw_device()
4647 ret = __btrfs_alloc_chunk(trans, extent_root, chunk_offset, in init_first_rw_device()
4654 ret = __btrfs_alloc_chunk(trans, extent_root, sys_chunk_offset, in init_first_rw_device()