diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-12-21 15:23:41 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-12-21 15:23:41 -0500 |
commit | 7de3ee57da4b717050e79c9313a9bf66ccc72519 (patch) | |
tree | dd9bf250c6d9139528e563167cabdb811c8fd6cb /drivers/md/dm-zero.c | |
parent | ee18026ac69efba804144541171299efd41747d2 (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-zero.c')
-rw-r--r-- | drivers/md/dm-zero.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-zero.c b/drivers/md/dm-zero.c index cc2b3cb81946..69a5c3b3b340 100644 --- a/drivers/md/dm-zero.c +++ b/drivers/md/dm-zero.c | |||
@@ -33,8 +33,7 @@ static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
33 | /* | 33 | /* |
34 | * Return zeros only on reads | 34 | * Return zeros only on reads |
35 | */ | 35 | */ |
36 | static int zero_map(struct dm_target *ti, struct bio *bio, | 36 | static int zero_map(struct dm_target *ti, struct bio *bio) |
37 | union map_info *map_context) | ||
38 | { | 37 | { |
39 | switch(bio_rw(bio)) { | 38 | switch(bio_rw(bio)) { |
40 | case READ: | 39 | case READ: |
@@ -56,7 +55,7 @@ static int zero_map(struct dm_target *ti, struct bio *bio, | |||
56 | 55 | ||
57 | static struct target_type zero_target = { | 56 | static struct target_type zero_target = { |
58 | .name = "zero", | 57 | .name = "zero", |
59 | .version = {1, 0, 0}, | 58 | .version = {1, 1, 0}, |
60 | .module = THIS_MODULE, | 59 | .module = THIS_MODULE, |
61 | .ctr = zero_ctr, | 60 | .ctr = zero_ctr, |
62 | .map = zero_map, | 61 | .map = zero_map, |