aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2006-10-03 04:15:21 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:04:13 -0400
commit7006f6eca874cd44d37ccb8cfeb8bed04e3bff22 (patch)
tree2e0827157e770e62493dea144e5d9ef73091e554 /drivers/md
parent9af4aa30b713a58e5952045f52c41a6e3baa2fdc (diff)
[PATCH] dm: export blkdev_driver_ioctl
Export blkdev_driver_ioctl for device-mapper. If we get as far as the device-mapper ioctl handler, we know the ioctl is not a standard block layer BLK* one, so we don't need to check for them a second time and can call blkdev_driver_ioctl() directly. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-linear.c2
-rw-r--r--drivers/md/dm-mpath.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index c58f072ccae6..2a6bad451f86 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -105,7 +105,7 @@ static int linear_ioctl(struct dm_target *ti, struct inode *inode,
105 struct linear_c *lc = (struct linear_c *) ti->private; 105 struct linear_c *lc = (struct linear_c *) ti->private;
106 struct block_device *bdev = lc->dev->bdev; 106 struct block_device *bdev = lc->dev->bdev;
107 107
108 return blkdev_ioctl(bdev->bd_inode, filp, cmd, arg); 108 return blkdev_driver_ioctl(bdev->bd_inode, filp, bdev->bd_disk, cmd, arg);
109} 109}
110 110
111static struct target_type linear_target = { 111static struct target_type linear_target = {
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 14cfdb538efd..dcfbf830964c 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -1290,7 +1290,8 @@ static int multipath_ioctl(struct dm_target *ti, struct inode *inode,
1290 1290
1291 spin_unlock_irqrestore(&m->lock, flags); 1291 spin_unlock_irqrestore(&m->lock, flags);
1292 1292
1293 return r ? : blkdev_ioctl(bdev->bd_inode, filp, cmd, arg); 1293 return r ? : blkdev_driver_ioctl(bdev->bd_inode, filp, bdev->bd_disk,
1294 cmd, arg);
1294} 1295}
1295 1296
1296/*----------------------------------------------------------------- 1297/*-----------------------------------------------------------------