提交 3a8ba33b 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

dm-ebs: use bvec_virt

Use bvec_virt instead of open coding it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210804095634.460779-5-hch@lst.deSigned-off-by: NJens Axboe <axboe@kernel.dk>
上级 1c277e50
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册