]> www.infradead.org Git - users/hch/block.git/commitdiff
btrfs: use bvec_kmap_local in __btrfsic_submit_bio
authorChristoph Hellwig <hch@lst.de>
Thu, 20 May 2021 13:03:22 +0000 (15:03 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 May 2021 05:57:23 +0000 (07:57 +0200)
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 <hch@lst.de>
fs/btrfs/check-integrity.c

index 1695086093249bdb0cafe6321fd2059dac536a4a..24c063734d67bbb762ac345aef5735cb2725d919 100644 (file)
@@ -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 &