diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-03-02 10:43:36 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:48:52 -0400 |
commit | 90b8f2824ce68dd87d304641a1d5a048dfff39f5 (patch) | |
tree | b55ddcb619aac1e16d845dd6796c51721dd6ee56 /block/compat_ioctl.c | |
parent | 40cc51be699e37b78102ce7b2196ec9c32fe1908 (diff) |
[PATCH] end of methods switch: remove the old ones
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'block/compat_ioctl.c')
-rw-r--r-- | block/compat_ioctl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 576c4fd15463..fd537fdb25a3 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c | |||
@@ -708,16 +708,6 @@ static int compat_blkdev_driver_ioctl(struct inode *inode, struct file *file, | |||
708 | return -ENOIOCTLCMD; | 708 | return -ENOIOCTLCMD; |
709 | } | 709 | } |
710 | 710 | ||
711 | if (disk->fops->__unlocked_ioctl) | ||
712 | return disk->fops->__unlocked_ioctl(file, cmd, arg); | ||
713 | |||
714 | if (disk->fops->__ioctl) { | ||
715 | lock_kernel(); | ||
716 | ret = disk->fops->__ioctl(inode, file, cmd, arg); | ||
717 | unlock_kernel(); | ||
718 | return ret; | ||
719 | } | ||
720 | |||
721 | return __blkdev_driver_ioctl(inode->i_bdev, file->f_mode, cmd, arg); | 711 | return __blkdev_driver_ioctl(inode->i_bdev, file->f_mode, cmd, arg); |
722 | } | 712 | } |
723 | 713 | ||
@@ -805,8 +795,6 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
805 | 795 | ||
806 | lock_kernel(); | 796 | lock_kernel(); |
807 | ret = compat_blkdev_locked_ioctl(inode, file, bdev, cmd, arg); | 797 | ret = compat_blkdev_locked_ioctl(inode, file, bdev, cmd, arg); |
808 | if (ret == -ENOIOCTLCMD && disk->fops->__compat_ioctl) | ||
809 | ret = disk->fops->__compat_ioctl(file, cmd, arg); | ||
810 | unlock_kernel(); | 798 | unlock_kernel(); |
811 | if (ret == -ENOIOCTLCMD && disk->fops->compat_ioctl) | 799 | if (ret == -ENOIOCTLCMD && disk->fops->compat_ioctl) |
812 | ret = disk->fops->compat_ioctl(bdev, file->f_mode, cmd, arg); | 800 | ret = disk->fops->compat_ioctl(bdev, file->f_mode, cmd, arg); |