diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-03 11:00:18 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 08:14:29 -0700 |
commit | a7cb3d2f09c8405aed59d97a7d02cebea43cd3c7 (patch) | |
tree | 620ec73e4343bdbf571d27cf53975682d33e0ab9 /drivers/md/dm.c | |
parent | 98f49b63e84d4ee1a5c327d0b5f4e8699f6c70fe (diff) | |
download | linux-a7cb3d2f09c8405aed59d97a7d02cebea43cd3c7.tar.bz2 |
block: remove __blkdev_driver_ioctl
Just open code it in the few callers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index c18fc2548518..6db395c3d28b 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -570,7 +570,10 @@ static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode, } } - r = __blkdev_driver_ioctl(bdev, mode, cmd, arg); + if (!bdev->bd_disk->fops->ioctl) + r = -ENOTTY; + else + r = bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); out: dm_unprepare_ioctl(md, srcu_idx); return r; |