block: use new bdev_nr_bytes() helper for blkdev_{read,write}_iter()
authorJens Axboe <axboe@kernel.dk>
Thu, 4 Nov 2021 21:13:17 +0000 (15:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Nov 2021 14:32:05 +0000 (08:32 -0600)
commit138c1a38113d989416df57e9f8973c10c9e1fa04
tree130be89d57d55d216d3e607895e5a8b6d8f46a73
parent2116274af46b12df7cea1dc5698f3cf2f231f8a9
block: use new bdev_nr_bytes() helper for blkdev_{read,write}_iter()

We have new helpers for this, use them rather than the slower inode
size reads. This makes the read/write path consistent with most of
the rest of block as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/a72767cd-3c6d-47f7-80f4-aa025a17b2cb@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c