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.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 328cad5617ab..4f99d267340c 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -53,9 +53,9 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
53 goto bad; 53 goto bad;
54 } 54 }
55 55
56 ti->num_flush_requests = 1; 56 ti->num_flush_bios = 1;
57 ti->num_discard_requests = 1; 57 ti->num_discard_bios = 1;
58 ti->num_write_same_requests = 1; 58 ti->num_write_same_bios = 1;
59 ti->private = lc; 59 ti->private = lc;
60 return 0; 60 return 0;
61 61
@@ -95,8 +95,8 @@ static int linear_map(struct dm_target *ti, struct bio *bio)
95 return DM_MAPIO_REMAPPED; 95 return DM_MAPIO_REMAPPED;
96} 96}
97 97
98static int linear_status(struct dm_target *ti, status_type_t type, 98static void linear_status(struct dm_target *ti, status_type_t type,
99 unsigned status_flags, char *result, unsigned maxlen) 99 unsigned status_flags, char *result, unsigned maxlen)
100{ 100{
101 struct linear_c *lc = (struct linear_c *) ti->private; 101 struct linear_c *lc = (struct linear_c *) ti->private;
102 102
@@ -110,7 +110,6 @@ static int linear_status(struct dm_target *ti, status_type_t type,
110 (unsigned long long)lc->start); 110 (unsigned long long)lc->start);
111 break; 111 break;
112 } 112 }
113 return 0;
114} 113}
115 114
116static int linear_ioctl(struct dm_target *ti, unsigned int cmd, 115static int linear_ioctl(struct dm_target *ti, unsigned int cmd,
@@ -155,7 +154,7 @@ static int linear_iterate_devices(struct dm_target *ti,
155 154
156static struct target_type linear_target = { 155static struct target_type linear_target = {
157 .name = "linear", 156 .name = "linear",
158 .version = {1, 2, 0}, 157 .version = {1, 2, 1},
159 .module = THIS_MODULE, 158 .module = THIS_MODULE,
160 .ctr = linear_ctr, 159 .ctr = linear_ctr,
161 .dtr = linear_dtr, 160 .dtr = linear_dtr,