]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf688600c391599206e1d3c7b4314c8dfd6d06ca4
tree302be87bd06e928194b3c98607fe15ccfdac7f2f
parent34f1f300c2f21a0773b1694e0b2a2cb6b25c6034
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