You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Alasdair G Kergon
parent
ee18026ac6
commit
7de3ee57da
@@ -33,8 +33,7 @@ static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv)
|
||||
/*
|
||||
* Return zeros only on reads
|
||||
*/
|
||||
static int zero_map(struct dm_target *ti, struct bio *bio,
|
||||
union map_info *map_context)
|
||||
static int zero_map(struct dm_target *ti, struct bio *bio)
|
||||
{
|
||||
switch(bio_rw(bio)) {
|
||||
case READ:
|
||||
@@ -56,7 +55,7 @@ static int zero_map(struct dm_target *ti, struct bio *bio,
|
||||
|
||||
static struct target_type zero_target = {
|
||||
.name = "zero",
|
||||
.version = {1, 0, 0},
|
||||
.version = {1, 1, 0},
|
||||
.module = THIS_MODULE,
|
||||
.ctr = zero_ctr,
|
||||
.map = zero_map,
|
||||
|
||||
Reference in New Issue
Block a user