partitions/efi: use bdev_nr_bytes instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 06:20:23 +0000 (08:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 12:16:50 +0000 (06:16 -0600)
commitf9831b885709978ed9d16833ceeb3a2ec174a2d2
tree9ae37a9dcdfa8c64cae17f9379391ce150b889e3
parent946e99373037be4841e8b42dcd136e03093c9fd5
partitions/efi: use bdev_nr_bytes instead of open coding it

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-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/efi.c