diff options
author | Alasdair G Kergon <agk@redhat.com> | 2006-10-03 04:15:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:13 -0400 |
commit | 7006f6eca874cd44d37ccb8cfeb8bed04e3bff22 (patch) | |
tree | 2e0827157e770e62493dea144e5d9ef73091e554 /include/linux | |
parent | 9af4aa30b713a58e5952045f52c41a6e3baa2fdc (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 'include/linux')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7b61e94bf8fc..f53bf4ff1955 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1523,6 +1523,9 @@ extern const struct file_operations def_fifo_fops; | |||
1523 | #ifdef CONFIG_BLOCK | 1523 | #ifdef CONFIG_BLOCK |
1524 | extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long); | 1524 | extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long); |
1525 | extern int blkdev_ioctl(struct inode *, struct file *, unsigned, unsigned long); | 1525 | extern int blkdev_ioctl(struct inode *, struct file *, unsigned, unsigned long); |
1526 | extern int blkdev_driver_ioctl(struct inode *inode, struct file *file, | ||
1527 | struct gendisk *disk, unsigned cmd, | ||
1528 | unsigned long arg); | ||
1526 | extern long compat_blkdev_ioctl(struct file *, unsigned, unsigned long); | 1529 | extern long compat_blkdev_ioctl(struct file *, unsigned, unsigned long); |
1527 | extern int blkdev_get(struct block_device *, mode_t, unsigned); | 1530 | extern int blkdev_get(struct block_device *, mode_t, unsigned); |
1528 | extern int blkdev_put(struct block_device *); | 1531 | extern int blkdev_put(struct block_device *); |