From b8d21e5c9abea4d5f13de3e859456e80e0c012cf Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 20 May 2021 15:03:22 +0200 Subject: [PATCH] btrfs: use bvec_kmap_local in __btrfsic_submit_bio Switch to the bvec interface. Note that bv_offset is always zero here, so not taking it into accounting in the existing code is actually harmless. Signed-off-by: Christoph Hellwig --- fs/btrfs/check-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index 169508609324..24c063734d67 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c @@ -2703,7 +2703,7 @@ static void __btrfsic_submit_bio(struct bio *bio) bio_for_each_segment(bvec, bio, iter) { BUG_ON(bvec.bv_len != PAGE_SIZE); - mapped_datav[i] = kmap_local_page(bvec.bv_page); + mapped_datav[i] = bvec_kmap_local(&bvec); i++; if (dev_state->state->print_mask & -- 2.50.1