bcache: use bvec_kmap_local in bch_data_verify
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 14:38:11 +0000 (22:38 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:40:54 +0000 (08:40 -0600)
commit00387bd21dac98f9e793294c895768d9e5441f82
tree302be87bd06e928194b3c98607fe15ccfdac7f2f
parent0f5cd7815f7f4bb1dd340a9aeb9b9d6a7c7eec22
bcache: use bvec_kmap_local in bch_data_verify

Using local kmaps slightly reduces the chances to stray writes, and
the bvec interface cleans up the code a little bit.

Also switch from page_address to bvec_kmap_local for cbv to be on the
safe side and to avoid pointlessly poking into bvec internals.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211020143812.6403-8-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/debug.c