Skip to content

Commit

Permalink
dm-ebs: use bvec_virt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Aug 16, 2021
1 parent 1c277e5 commit 3a8ba33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-ebs-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3a8ba33

Please sign in to comment.