Lines Matching full:chunk_map
4657 struct btrfs_chunk_map *chunk_map, in remove_chunk_stripes() argument
4668 key.offset = chunk_map->start; in remove_chunk_stripes()
4698 int btrfs_last_identity_remap_gone(struct btrfs_chunk_map *chunk_map, in btrfs_last_identity_remap_gone() argument
4717 num_items = chunk_map->num_stripes + 1; in btrfs_last_identity_remap_gone()
4719 num_items = 2 * chunk_map->num_stripes; in btrfs_last_identity_remap_gone()
4725 ret = btrfs_remove_dev_extents(trans, chunk_map); in btrfs_last_identity_remap_gone()
4733 for (unsigned int i = 0; i < chunk_map->num_stripes; i++) { in btrfs_last_identity_remap_gone()
4734 ret = btrfs_update_device(trans, chunk_map->stripes[i].dev); in btrfs_last_identity_remap_gone()
4745 btrfs_chunk_map_device_clear_bits(chunk_map, CHUNK_ALLOCATED); in btrfs_last_identity_remap_gone()
4754 ret = remove_chunk_stripes(trans, chunk_map, path); in btrfs_last_identity_remap_gone()
4895 struct btrfs_chunk_map *chunk_map; in mark_chunk_remapped() local
4904 chunk_map = btrfs_find_chunk_map_nolock(fs_info, start, 1); in mark_chunk_remapped()
4905 if (!chunk_map) { in mark_chunk_remapped()
4910 chunk_map->type |= BTRFS_BLOCK_GROUP_REMAPPED; in mark_chunk_remapped()
4911 type = chunk_map->type; in mark_chunk_remapped()
4934 btrfs_free_chunk_map(chunk_map); in mark_chunk_remapped()