Commit 6da525b3 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

ps3vram: use bvec_virt

Use bvec_virt instead of open coding it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210804095634.460779-13-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 25d84545
...@@ -541,7 +541,7 @@ static struct bio *ps3vram_do_bio(struct ps3_system_bus_device *dev, ...@@ -541,7 +541,7 @@ static struct bio *ps3vram_do_bio(struct ps3_system_bus_device *dev,
bio_for_each_segment(bvec, bio, iter) { bio_for_each_segment(bvec, bio, iter) {
/* PS3 is ppc64, so we don't handle highmem */ /* PS3 is ppc64, so we don't handle highmem */
char *ptr = page_address(bvec.bv_page) + bvec.bv_offset; char *ptr = bvec_virt(&bvec);
size_t len = bvec.bv_len, retlen; size_t len = bvec.bv_len, retlen;
dev_dbg(&dev->core, " %s %zu bytes at offset %llu\n", op, dev_dbg(&dev->core, " %s %zu bytes at offset %llu\n", op,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment