Lines Matching refs:extent_root
2733 struct btrfs_root *extent_root = root->fs_info->extent_root; in btrfs_remove_chunk() local
2761 check_system_chunk(trans, extent_root, map->type); in btrfs_remove_chunk()
2809 ret = btrfs_remove_block_group(trans, extent_root, chunk_offset, em); in btrfs_remove_chunk()
2811 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_remove_chunk()
2823 struct btrfs_root *extent_root; in btrfs_relocate_chunk() local
2828 extent_root = root->fs_info->extent_root; in btrfs_relocate_chunk()
2844 ret = btrfs_can_relocate(extent_root, chunk_offset); in btrfs_relocate_chunk()
2850 ret = btrfs_relocate_block_group(extent_root, chunk_offset); in btrfs_relocate_chunk()
4486 struct btrfs_root *extent_root, u64 start, in __btrfs_alloc_chunk() argument
4489 struct btrfs_fs_info *info = extent_root->fs_info; in __btrfs_alloc_chunk()
4705 map->sector_size = extent_root->sectorsize; in __btrfs_alloc_chunk()
4730 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in __btrfs_alloc_chunk()
4743 ret = btrfs_make_block_group(trans, extent_root, 0, type, in __btrfs_alloc_chunk()
4754 spin_lock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4755 extent_root->fs_info->free_chunk_space -= (stripe_size * in __btrfs_alloc_chunk()
4757 spin_unlock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4760 check_raid56_incompat_flag(extent_root->fs_info, type); in __btrfs_alloc_chunk()
4782 struct btrfs_root *extent_root, in btrfs_finish_chunk_alloc() argument
4786 struct btrfs_root *chunk_root = extent_root->fs_info->chunk_root; in btrfs_finish_chunk_alloc()
4799 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in btrfs_finish_chunk_alloc()
4805 btrfs_crit(extent_root->fs_info, "unable to find logical " in btrfs_finish_chunk_alloc()
4811 btrfs_crit(extent_root->fs_info, "found a bad mapping, wanted" in btrfs_finish_chunk_alloc()
4856 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); in btrfs_finish_chunk_alloc()
4862 btrfs_set_stack_chunk_sector_size(chunk, extent_root->sectorsize); in btrfs_finish_chunk_alloc()
4893 struct btrfs_root *extent_root, u64 type) in btrfs_alloc_chunk() argument
4897 ASSERT(mutex_is_locked(&extent_root->fs_info->chunk_mutex)); in btrfs_alloc_chunk()
4898 chunk_offset = find_next_chunk(extent_root->fs_info); in btrfs_alloc_chunk()
4899 return __btrfs_alloc_chunk(trans, extent_root, chunk_offset, type); in btrfs_alloc_chunk()
4910 struct btrfs_root *extent_root = fs_info->extent_root; in init_first_rw_device() local
4914 alloc_profile = btrfs_get_alloc_profile(extent_root, 0); in init_first_rw_device()
4915 ret = __btrfs_alloc_chunk(trans, extent_root, chunk_offset, in init_first_rw_device()
4922 ret = __btrfs_alloc_chunk(trans, extent_root, sys_chunk_offset, in init_first_rw_device()