summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-30 02:34:12 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 13:47:26 +0200
commit633a08b81206122469365b4c72eaeb71f04f2cb4 (patch)
tree9cd30507efd30645d30d351c7ad0d5966f806532 /drivers/block
parent[PATCH] switch pktcdvd to blkdev_driver_ioctl() (diff)
downloadlinux-633a08b81206122469365b4c72eaeb71f04f2cb4.tar.xz
linux-633a08b81206122469365b4c72eaeb71f04f2cb4.zip
[PATCH] introduce __blkdev_driver_ioctl()
Analog of blkdev_driver_ioctl() with sane arguments. For now uses fake struct file, by the end of the series it won't and blkdev_driver_ioctl() will become a wrapper around it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/pktcdvd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index bdd49abcb546..a0ba4023953b 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2819,8 +2819,8 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
case CDROM_LAST_WRITTEN:
case CDROM_SEND_PACKET:
case SCSI_IOCTL_SEND_COMMAND:
- return blkdev_driver_ioctl(pd->bdev->bd_inode, pd->bdev->bd_disk,
- file, cmd, arg);
+ return __blkdev_driver_ioctl(pd->bdev, file ? file->f_mode : 0,
+ cmd, arg);
default:
VPRINTK(DRIVER_NAME": Unknown ioctl for %s (%x)\n", pd->name, cmd);