diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:56:26 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-16 10:50:33 -0600 |
commit | cf58b537781df6eee2bbeae0463e45acf727978a (patch) | |
tree | 1f862c445d5009410c903597427188c0700e4438 /drivers/block | |
parent | fbc27241e537d3a99d0f843a4080e1d2fb014fb4 (diff) | |
download | linux-cf58b537781df6eee2bbeae0463e45acf727978a.tar.bz2 |
rbd: use bvec_virt
Use bvec_virt instead of open coding it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20210804095634.460779-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 6d596c2c2cd6..e65c9d706f6f 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2986,8 +2986,7 @@ static bool is_zero_bvecs(struct bio_vec *bvecs, u32 bytes) }; ceph_bvec_iter_advance_step(&it, bytes, ({ - if (memchr_inv(page_address(bv.bv_page) + bv.bv_offset, 0, - bv.bv_len)) + if (memchr_inv(bvec_virt(&bv), 0, bv.bv_len)) return false; })); return true; |