Lines Matching refs:chunk_map
4655 struct btrfs_chunk_map *chunk_map, in remove_chunk_stripes() argument
4666 key.offset = chunk_map->start; in remove_chunk_stripes()
4696 int btrfs_last_identity_remap_gone(struct btrfs_chunk_map *chunk_map, in btrfs_last_identity_remap_gone() argument
4715 num_items = chunk_map->num_stripes + 1; in btrfs_last_identity_remap_gone()
4717 num_items = 2 * chunk_map->num_stripes; in btrfs_last_identity_remap_gone()
4723 ret = btrfs_remove_dev_extents(trans, chunk_map); in btrfs_last_identity_remap_gone()
4730 for (unsigned int i = 0; i < chunk_map->num_stripes; i++) { in btrfs_last_identity_remap_gone()
4731 ret = btrfs_update_device(trans, chunk_map->stripes[i].dev); in btrfs_last_identity_remap_gone()
4741 btrfs_chunk_map_device_clear_bits(chunk_map, CHUNK_ALLOCATED); in btrfs_last_identity_remap_gone()
4750 ret = remove_chunk_stripes(trans, chunk_map, path); in btrfs_last_identity_remap_gone()
4890 struct btrfs_chunk_map *chunk_map; in mark_chunk_remapped() local
4899 chunk_map = btrfs_find_chunk_map_nolock(fs_info, start, 1); in mark_chunk_remapped()
4900 if (!chunk_map) { in mark_chunk_remapped()
4905 chunk_map->type |= BTRFS_BLOCK_GROUP_REMAPPED; in mark_chunk_remapped()
4906 type = chunk_map->type; in mark_chunk_remapped()
4929 btrfs_free_chunk_map(chunk_map); in mark_chunk_remapped()