Skip to content
Snippets Groups Projects
Commit 138c1a38 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/a72767cd-3c6d-47f7-80f4-aa025a17b2cb@kernel.dk


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2116274a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment