tag | 77e32fed02deb46c8dd92b7479b11cbbe65594a7 | |
---|---|---|
tagger | Jens Axboe <axboe@kernel.dk> | Fri Oct 29 11:30:34 2021 -0600 |
object | 97eeb5fc14cc4b2091df8b841a07a1ac69f2d762 |
for-5.16/bdev-size-2021-10-29
commit | 97eeb5fc14cc4b2091df8b841a07a1ac69f2d762 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Oct 19 08:20:24 2021 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 19 06:17:33 2021 -0600 |
tree | e1148e0322a5df05bdbe4e30b2696c2516a17377 | |
parent | f9831b885709978ed9d16833ceeb3a2ec174a2d2 [diff] |
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>