diff options
-rw-r--r-- | drivers/md/dm-linear.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 47b3c62bbdb8..c58f072ccae6 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -98,14 +98,25 @@ static int linear_status(struct dm_target *ti, status_type_t type, | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | static int linear_ioctl(struct dm_target *ti, struct inode *inode, | ||
102 | struct file *filp, unsigned int cmd, | ||
103 | unsigned long arg) | ||
104 | { | ||
105 | struct linear_c *lc = (struct linear_c *) ti->private; | ||
106 | struct block_device *bdev = lc->dev->bdev; | ||
107 | |||
108 | return blkdev_ioctl(bdev->bd_inode, filp, cmd, arg); | ||
109 | } | ||
110 | |||
101 | static struct target_type linear_target = { | 111 | static struct target_type linear_target = { |
102 | .name = "linear", | 112 | .name = "linear", |
103 | .version= {1, 0, 1}, | 113 | .version= {1, 0, 2}, |
104 | .module = THIS_MODULE, | 114 | .module = THIS_MODULE, |
105 | .ctr = linear_ctr, | 115 | .ctr = linear_ctr, |
106 | .dtr = linear_dtr, | 116 | .dtr = linear_dtr, |
107 | .map = linear_map, | 117 | .map = linear_map, |
108 | .status = linear_status, | 118 | .status = linear_status, |
119 | .ioctl = linear_ioctl, | ||
109 | }; | 120 | }; |
110 | 121 | ||
111 | int __init dm_linear_init(void) | 122 | int __init dm_linear_init(void) |