diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-03-26 10:23:45 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:04 -0400 |
commit | 0000d031703c33b9ea909ad81f03762db66135e1 (patch) | |
tree | 27abfe41b8959c8be7a8a3017d3aafc963d0b510 /drivers/s390/block/dasd_ioctl.c | |
parent | 59fa4392dddae244a1148cbbcb090b5a5728f576 (diff) |
[S390] dasd: enable compat ioctls
All of the ioctls are compatible. Just enable them.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_ioctl.c')
-rw-r--r-- | drivers/s390/block/dasd_ioctl.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c index b82d816d9ef7..16e6ba462cb6 100644 --- a/drivers/s390/block/dasd_ioctl.c +++ b/drivers/s390/block/dasd_ioctl.c | |||
@@ -365,9 +365,9 @@ static int dasd_ioctl_readall_cmb(struct dasd_block *block, unsigned int cmd, | |||
365 | return ret; | 365 | return ret; |
366 | } | 366 | } |
367 | 367 | ||
368 | int | 368 | static int |
369 | dasd_ioctl(struct block_device *bdev, fmode_t mode, | 369 | dasd_do_ioctl(struct block_device *bdev, fmode_t mode, |
370 | unsigned int cmd, unsigned long arg) | 370 | unsigned int cmd, unsigned long arg) |
371 | { | 371 | { |
372 | struct dasd_block *block = bdev->bd_disk->private_data; | 372 | struct dasd_block *block = bdev->bd_disk->private_data; |
373 | void __user *argp = (void __user *)arg; | 373 | void __user *argp = (void __user *)arg; |
@@ -420,3 +420,14 @@ dasd_ioctl(struct block_device *bdev, fmode_t mode, | |||
420 | return -EINVAL; | 420 | return -EINVAL; |
421 | } | 421 | } |
422 | } | 422 | } |
423 | |||
424 | int dasd_ioctl(struct block_device *bdev, fmode_t mode, | ||
425 | unsigned int cmd, unsigned long arg) | ||
426 | { | ||
427 | int rc; | ||
428 | |||
429 | lock_kernel(); | ||
430 | rc = dasd_do_ioctl(bdev, mode, cmd, arg); | ||
431 | unlock_kernel(); | ||
432 | return rc; | ||
433 | } | ||