• Home
  • Raw
  • Download

Lines Matching refs:extent_root

2808 	struct btrfs_root *extent_root = root->fs_info->extent_root;  in btrfs_remove_chunk()  local
2837 check_system_chunk(trans, extent_root, map->type); in btrfs_remove_chunk()
2895 ret = btrfs_remove_block_group(trans, extent_root, chunk_offset, em); in btrfs_remove_chunk()
2909 struct btrfs_root *extent_root; in btrfs_relocate_chunk() local
2914 extent_root = root->fs_info->extent_root; in btrfs_relocate_chunk()
2930 ret = btrfs_can_relocate(extent_root, chunk_offset); in btrfs_relocate_chunk()
2936 ret = btrfs_relocate_block_group(extent_root, chunk_offset); in btrfs_relocate_chunk()
2954 btrfs_end_transaction(trans, extent_root); in btrfs_relocate_chunk()
4603 struct btrfs_root *extent_root, u64 start, in __btrfs_alloc_chunk() argument
4606 struct btrfs_fs_info *info = extent_root->fs_info; in __btrfs_alloc_chunk()
4775 extent_root->stripesize); in __btrfs_alloc_chunk()
4780 extent_root->stripesize); in __btrfs_alloc_chunk()
4823 map->sector_size = extent_root->sectorsize; in __btrfs_alloc_chunk()
4848 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in __btrfs_alloc_chunk()
4861 ret = btrfs_make_block_group(trans, extent_root, 0, type, in __btrfs_alloc_chunk()
4872 spin_lock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4873 extent_root->fs_info->free_chunk_space -= (stripe_size * in __btrfs_alloc_chunk()
4875 spin_unlock(&extent_root->fs_info->free_chunk_lock); in __btrfs_alloc_chunk()
4878 check_raid56_incompat_flag(extent_root->fs_info, type); in __btrfs_alloc_chunk()
4900 struct btrfs_root *extent_root, in btrfs_finish_chunk_alloc() argument
4904 struct btrfs_root *chunk_root = extent_root->fs_info->chunk_root; in btrfs_finish_chunk_alloc()
4917 em_tree = &extent_root->fs_info->mapping_tree.map_tree; in btrfs_finish_chunk_alloc()
4923 btrfs_crit(extent_root->fs_info, in btrfs_finish_chunk_alloc()
4930 btrfs_crit(extent_root->fs_info, in btrfs_finish_chunk_alloc()
4988 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); in btrfs_finish_chunk_alloc()
4994 btrfs_set_stack_chunk_sector_size(chunk, extent_root->sectorsize); in btrfs_finish_chunk_alloc()
5025 struct btrfs_root *extent_root, u64 type) in btrfs_alloc_chunk() argument
5029 ASSERT(mutex_is_locked(&extent_root->fs_info->chunk_mutex)); in btrfs_alloc_chunk()
5030 chunk_offset = find_next_chunk(extent_root->fs_info); in btrfs_alloc_chunk()
5031 return __btrfs_alloc_chunk(trans, extent_root, chunk_offset, type); in btrfs_alloc_chunk()
5042 struct btrfs_root *extent_root = fs_info->extent_root; in init_first_rw_device() local
5046 alloc_profile = btrfs_get_alloc_profile(extent_root, 0); in init_first_rw_device()
5047 ret = __btrfs_alloc_chunk(trans, extent_root, chunk_offset, in init_first_rw_device()
5054 ret = __btrfs_alloc_chunk(trans, extent_root, sys_chunk_offset, in init_first_rw_device()