block/ioctl: use bdev_nr_sectors and bdev_nr_bytes
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 06:20:22 +0000 (08:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 12:16:50 +0000 (06:16 -0600)
commit946e99373037be4841e8b42dcd136e03093c9fd5
treed8644172d57ff88b6e650f9a99ee6fb6b7bd75b1
parentf09313c57a17683cbcb305989daf1d94b49fd32c
block/ioctl: use bdev_nr_sectors and bdev_nr_bytes

Use the proper helper to read the block device size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211019062024.2171074-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioctl.c