partitions/ibm: use bdev_nr_sectors instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 06:20:24 +0000 (08:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 12:17:33 +0000 (06:17 -0600)
commit97eeb5fc14cc4b2091df8b841a07a1ac69f2d762
treee1148e0322a5df05bdbe4e30b2696c2516a17377
parentf9831b885709978ed9d16833ceeb3a2ec174a2d2
partitions/ibm: use bdev_nr_sectors instead of open coding it

Use the proper helper to read the block device size and switch various
places to pass the size in terms of sectors which is more practical.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211019062024.2171074-4-hch@lst.de
[axboe: fix comment typo]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/ibm.c