summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMikulas Patocka2012-12-21 21:23:41 +0100
committerAlasdair G Kergon2012-12-21 21:23:41 +0100
commit7de3ee57da4b717050e79c9313a9bf66ccc72519 (patch)
treedd9bf250c6d9139528e563167cabdb811c8fd6cb /drivers/md/dm.c
parentdm snapshot: do not use map_context (diff)
downloadkernel-qcow2-linux-7de3ee57da4b717050e79c9313a9bf66ccc72519.tar.gz
kernel-qcow2-linux-7de3ee57da4b717050e79c9313a9bf66ccc72519.tar.xz
kernel-qcow2-linux-7de3ee57da4b717050e79c9313a9bf66ccc72519.zip
dm: remove map_info
This patch removes map_info from bio-based device mapper targets. map_info is still used for request-based targets. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 5ee580b4f330..c72e4d5a9617 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -645,7 +645,7 @@ static void clone_endio(struct bio *bio, int error)
error = -EIO;
if (endio) {
- r = endio(tio->ti, bio, error, &tio->info);
+ r = endio(tio->ti, bio, error);
if (r < 0 || r == DM_ENDIO_REQUEUE)
/*
* error and requeue request are handled
@@ -1004,7 +1004,7 @@ static void __map_bio(struct dm_target *ti, struct dm_target_io *tio)
*/
atomic_inc(&tio->io->io_count);
sector = clone->bi_sector;
- r = ti->type->map(ti, clone, &tio->info);
+ r = ti->type->map(ti, clone);
if (r == DM_MAPIO_REMAPPED) {
/* the bio has been remapped so dispatch it */