aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r--drivers/md/dm-linear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 1bf19a93eef0..328cad5617ab 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -55,6 +55,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
55 55
56 ti->num_flush_requests = 1; 56 ti->num_flush_requests = 1;
57 ti->num_discard_requests = 1; 57 ti->num_discard_requests = 1;
58 ti->num_write_same_requests = 1;
58 ti->private = lc; 59 ti->private = lc;
59 return 0; 60 return 0;
60 61
@@ -87,8 +88,7 @@ static void linear_map_bio(struct dm_target *ti, struct bio *bio)
87 bio->bi_sector = linear_map_sector(ti, bio->bi_sector); 88 bio->bi_sector = linear_map_sector(ti, bio->bi_sector);
88} 89}
89 90
90static int linear_map(struct dm_target *ti, struct bio *bio, 91static int linear_map(struct dm_target *ti, struct bio *bio)
91 union map_info *map_context)
92{ 92{
93 linear_map_bio(ti, bio); 93 linear_map_bio(ti, bio);
94 94
@@ -155,7 +155,7 @@ static int linear_iterate_devices(struct dm_target *ti,
155 155
156static struct target_type linear_target = { 156static struct target_type linear_target = {
157 .name = "linear", 157 .name = "linear",
158 .version = {1, 1, 0}, 158 .version = {1, 2, 0},
159 .module = THIS_MODULE, 159 .module = THIS_MODULE,
160 .ctr = linear_ctr, 160 .ctr = linear_ctr,
161 .dtr = linear_dtr, 161 .dtr = linear_dtr,