]> www.infradead.org Git - users/hch/block.git/commit
bcache: use bvec_kmap_local in bch_data_verify
authorChristoph Hellwig <hch@lst.de>
Thu, 20 May 2021 13:07:35 +0000 (15:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 May 2021 05:57:23 +0000 (07:57 +0200)
commitdb90aa56323e4dd7a7141049b959a85af88529e8
tree3fd9aaee84e787e46f094d210ce91d721e918470
parentdc5d3e561e17937c290cc1dd3eba563970b0a917
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>
drivers/md/bcache/debug.c