summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-19 16:33:21 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-21 08:22:20 -0600
commit3783daeb1d24696ff00125050353cfce4f5b6239 (patch)
tree34450601d978323447b4c405e05ed953b17dbd17 /fs/block_dev.c
parent26d7e28e38206b1b3207af1409eee2269ab36f82 (diff)
downloadlinux-3783daeb1d24696ff00125050353cfce4f5b6239.tar.bz2
block: remove ioctl_by_bdev
No callers left. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 7cbb7b79935e..3003831c771d 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -2166,18 +2166,6 @@ const struct file_operations def_blk_fops = {
.fallocate = blkdev_fallocate,
};
-int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
-{
- int res;
- mm_segment_t old_fs = get_fs();
- set_fs(KERNEL_DS);
- res = blkdev_ioctl(bdev, 0, cmd, arg);
- set_fs(old_fs);
- return res;
-}
-
-EXPORT_SYMBOL(ioctl_by_bdev);
-
/**
* lookup_bdev - lookup a struct block_device by name
* @pathname: special file representing the block device