summaryrefslogtreecommitdiffstats
path: root/drivers/block/ps3vram.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-04 11:56:31 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-16 10:50:33 -0600
commit6da525b3ecaea04eaaeb3277f6e16d91ecfdb84a (patch)
treebbef3693d1a65c549b14b7aaac7014b0a695bdf4 /drivers/block/ps3vram.c
parent25d84545beaae8e9427bbd25feff309363cd0a58 (diff)
downloadlinux-6da525b3ecaea04eaaeb3277f6e16d91ecfdb84a.tar.gz
linux-6da525b3ecaea04eaaeb3277f6e16d91ecfdb84a.tar.bz2
linux-6da525b3ecaea04eaaeb3277f6e16d91ecfdb84a.zip
ps3vram: use bvec_virt
Use bvec_virt instead of open coding it. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210804095634.460779-13-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/ps3vram.c')
-rw-r--r--drivers/block/ps3vram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index 7fbf469651c4..c7b19e128b03 100644
--- a/drivers/block/ps3vram.c
+++ b/drivers/block/ps3vram.c
@@ -541,7 +541,7 @@ static struct bio *ps3vram_do_bio(struct ps3_system_bus_device *dev,
bio_for_each_segment(bvec, bio, iter) {
/* 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;
dev_dbg(&dev->core, " %s %zu bytes at offset %llu\n", op,