aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-flakey.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2012-12-21 15:23:41 -0500
committerAlasdair G Kergon <agk@redhat.com>2012-12-21 15:23:41 -0500
commit7de3ee57da4b717050e79c9313a9bf66ccc72519 (patch)
treedd9bf250c6d9139528e563167cabdb811c8fd6cb /drivers/md/dm-flakey.c
parentee18026ac69efba804144541171299efd41747d2 (diff)
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-flakey.c')
-rw-r--r--drivers/md/dm-flakey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm-flakey.c b/drivers/md/dm-flakey.c
index 660f98167e7b..9721f2ffb1a2 100644
--- a/drivers/md/dm-flakey.c
+++ b/drivers/md/dm-flakey.c
@@ -270,8 +270,7 @@ static void corrupt_bio_data(struct bio *bio, struct flakey_c *fc)
270 } 270 }
271} 271}
272 272
273static int flakey_map(struct dm_target *ti, struct bio *bio, 273static int flakey_map(struct dm_target *ti, struct bio *bio)
274 union map_info *map_context)
275{ 274{
276 struct flakey_c *fc = ti->private; 275 struct flakey_c *fc = ti->private;
277 unsigned elapsed; 276 unsigned elapsed;
@@ -321,8 +320,7 @@ map_bio:
321 return DM_MAPIO_REMAPPED; 320 return DM_MAPIO_REMAPPED;
322} 321}
323 322
324static int flakey_end_io(struct dm_target *ti, struct bio *bio, 323static int flakey_end_io(struct dm_target *ti, struct bio *bio, int error)
325 int error, union map_info *map_context)
326{ 324{
327 struct flakey_c *fc = ti->private; 325 struct flakey_c *fc = ti->private;
328 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data)); 326 struct per_bio_data *pb = dm_per_bio_data(bio, sizeof(struct per_bio_data));