summaryrefslogtreecommitdiffstats
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-27 15:38:10 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:47:14 -0400
commit74f3c8aff36ad6552ea609c8b20bfd588fa16f38 (patch)
treec046823751971ff37b66499282ca2b2e263cc71a /drivers/block/virtio_blk.c
parente915e872ed921d707bc32b3f2184d43abfa8c9e2 (diff)
downloadblackbird-op-linux-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.tar.gz
blackbird-op-linux-74f3c8aff36ad6552ea609c8b20bfd588fa16f38.zip
[PATCH] switch scsi_cmd_ioctl() to passing fmode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r--drivers/block/virtio_blk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 6ec5fc052786..7643cd16fd67 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -149,8 +149,8 @@ static void do_virtblk_request(struct request_queue *q)
static int virtblk_ioctl(struct inode *inode, struct file *filp,
unsigned cmd, unsigned long data)
{
- return scsi_cmd_ioctl(filp, inode->i_bdev->bd_disk->queue,
- inode->i_bdev->bd_disk, cmd,
+ return scsi_cmd_ioctl(inode->i_bdev->bd_disk->queue,
+ inode->i_bdev->bd_disk, filp->f_mode, cmd,
(void __user *)data);
}
OpenPOWER on IntegriCloud