summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ebs-target.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-04 11:56:23 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-16 18:50:32 +0200
commit3a8ba33bd71a4126b9e799e8d29d6d5da08c93f0 (patch)
treec9a497c12c863744954f7a0b09451b17e8cf217b /drivers/md/dm-ebs-target.c
parentdm: make EBS depend on !HIGHMEM (diff)
downloadlinux-3a8ba33bd71a4126b9e799e8d29d6d5da08c93f0.tar.xz
linux-3a8ba33bd71a4126b9e799e8d29d6d5da08c93f0.zip
dm-ebs: 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-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--drivers/md/dm-ebs-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-ebs-target.c b/drivers/md/dm-ebs-target.c
index 71475a2410be..0c509dae0ff8 100644
--- 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) {