projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25d8454
)
ps3vram: use bvec_virt
author
Christoph Hellwig
<hch@lst.de>
Wed, 4 Aug 2021 09:56:31 +0000
(11:56 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 16 Aug 2021 16:50:33 +0000
(10:50 -0600)
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>
drivers/block/ps3vram.c
patch
|
blob
|
history
diff --git
a/drivers/block/ps3vram.c
b/drivers/block/ps3vram.c
index 7fbf469651c4e0cf88f8a09564bb7855e4538c31..c7b19e128b03c79c010d416878b0a2cfac985454 100644
(file)
--- 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,