mutex_unlock(&md->swap_bios_lock);
}
-static void __map_bio(struct dm_target_io *tio)
+static void __map_bio(struct bio *clone)
{
+ struct dm_target_io *tio = clone_to_tio(clone);
int r;
sector_t sector;
- struct bio *clone = &tio->clone;
struct dm_io *io = tio->io;
struct dm_target *ti = tio->ti;
if (bio_integrity(bio))
bio_integrity_trim(clone);
- __map_bio(tio);
+ __map_bio(clone);
return 0;
free_tio:
free_tio(tio);
alloc_multiple_bios(&blist, ci, ti, num_bios, len);
while ((clone = bio_list_pop(&blist))) {
- struct dm_target_io *tio = clone_to_tio(clone);
-
if (len)
bio_setup_sector(clone, ci->sector, *len);
- __map_bio(tio);
+ __map_bio(clone);
}
}