dm verity: use bvec_kmap_local in verity_for_bv_block
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 13:44:06 +0000 (15:44 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Nov 2021 17:28:48 +0000 (13:28 -0400)
commit30495e688d9dc757bae4cfc7dc3e15a79b48917f
tree4ccd7d3c812a70ad84197fa09e8a605e04d30f7f
parent27db2717085198862a5b96dc8f00e527bf45c950
dm verity: use bvec_kmap_local in verity_for_bv_block

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-verity-target.c