mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
[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>
This commit is contained in:
parent
59fa4392dd
commit
0000d03170
@ -2101,7 +2101,8 @@ dasd_device_operations = {
|
|||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = dasd_open,
|
.open = dasd_open,
|
||||||
.release = dasd_release,
|
.release = dasd_release,
|
||||||
.locked_ioctl = dasd_ioctl,
|
.ioctl = dasd_ioctl,
|
||||||
|
.compat_ioctl = dasd_ioctl,
|
||||||
.getgeo = dasd_getgeo,
|
.getgeo = dasd_getgeo,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -365,8 +365,8 @@ static int dasd_ioctl_readall_cmb(struct dasd_block *block, unsigned int cmd,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
dasd_ioctl(struct block_device *bdev, fmode_t mode,
|
dasd_do_ioctl(struct block_device *bdev, fmode_t mode,
|
||||||
unsigned int cmd, unsigned long arg)
|
unsigned int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
struct dasd_block *block = bdev->bd_disk->private_data;
|
struct dasd_block *block = bdev->bd_disk->private_data;
|
||||||
@ -420,3 +420,14 @@ dasd_ioctl(struct block_device *bdev, fmode_t mode,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int dasd_ioctl(struct block_device *bdev, fmode_t mode,
|
||||||
|
unsigned int cmd, unsigned long arg)
|
||||||
|
{
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
lock_kernel();
|
||||||
|
rc = dasd_do_ioctl(bdev, mode, cmd, arg);
|
||||||
|
unlock_kernel();
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user