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/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/ioctl.c')
-rw-r--r-- | block/ioctl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/block/ioctl.c b/block/ioctl.c index 01ff463bc801..0db89f95b15f 100644 --- a/block/ioctl.c +++ b/block/ioctl.c | |||
@@ -276,16 +276,6 @@ int blkdev_driver_ioctl(struct inode *inode, struct file *file, | |||
276 | mode |= FMODE_NDELAY_NOW; | 276 | mode |= FMODE_NDELAY_NOW; |
277 | } | 277 | } |
278 | 278 | ||
279 | if (disk->fops->__unlocked_ioctl) | ||
280 | return disk->fops->__unlocked_ioctl(file, cmd, arg); | ||
281 | |||
282 | if (disk->fops->__ioctl) { | ||
283 | lock_kernel(); | ||
284 | ret = disk->fops->__ioctl(inode, file, cmd, arg); | ||
285 | unlock_kernel(); | ||
286 | return ret; | ||
287 | } | ||
288 | |||
289 | return __blkdev_driver_ioctl(inode->i_bdev, mode, cmd, arg); | 279 | return __blkdev_driver_ioctl(inode->i_bdev, mode, cmd, arg); |
290 | } | 280 | } |
291 | EXPORT_SYMBOL_GPL(blkdev_driver_ioctl); | 281 | EXPORT_SYMBOL_GPL(blkdev_driver_ioctl); |
@@ -295,22 +285,6 @@ int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, | |||
295 | { | 285 | { |
296 | struct gendisk *disk = bdev->bd_disk; | 286 | struct gendisk *disk = bdev->bd_disk; |
297 | int ret; | 287 | int ret; |
298 | /* you bet it'll go away by the end of patch series */ | ||
299 | struct file fake_file = {}; | ||
300 | struct dentry fake_dentry = {}; | ||
301 | fake_file.f_mode = mode; | ||
302 | fake_file.f_path.dentry = &fake_dentry; | ||
303 | fake_dentry.d_inode = bdev->bd_inode; | ||
304 | |||
305 | if (disk->fops->__unlocked_ioctl) | ||
306 | return disk->fops->__unlocked_ioctl(&fake_file, cmd, arg); | ||
307 | |||
308 | if (disk->fops->__ioctl) { | ||
309 | lock_kernel(); | ||
310 | ret = disk->fops->__ioctl(bdev->bd_inode, &fake_file, cmd, arg); | ||
311 | unlock_kernel(); | ||
312 | return ret; | ||
313 | } | ||
314 | 288 | ||
315 | if (disk->fops->ioctl) | 289 | if (disk->fops->ioctl) |
316 | return disk->fops->ioctl(bdev, mode, cmd, arg); | 290 | return disk->fops->ioctl(bdev, mode, cmd, arg); |