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:
1c277e5
)
dm-ebs: use bvec_virt
author
Christoph Hellwig
<hch@lst.de>
Wed, 4 Aug 2021 09:56:23 +0000
(11:56 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 16 Aug 2021 16:50:32 +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-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-ebs-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-ebs-target.c
b/drivers/md/dm-ebs-target.c
index 71475a2410bea7e57391f9a6f07d17900eb20441..0c509dae0ff839de234243f33989492242879311 100644
(file)
--- a/
drivers/md/dm-ebs-target.c
+++ b/
drivers/md/dm-ebs-target.c
@@
-74,7
+74,7
@@
static int __ebs_rw_bvec(struct ebs_c *ec, int rw, struct bio_vec *bv, struct bv
if (unlikely(!bv->bv_page || !bv_len))
return -EIO;
- pa =
page_address(bv->bv_page) + bv->bv_offset
;
+ pa =
bvec_virt(bv)
;
/* Handle overlapping page <-> blocks */
while (bv_len) {