nvdimm-btt: use bvec_kmap_local in btt_rw_integrity
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2022 11:19:01 +0000 (14:19 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Mar 2022 19:29:21 +0000 (12:29 -0700)
commit3205190655ea56ea5e00815eeff4dab2bde0af80
treebf26c63ea924934c9eca15eb749017435553ff85
parent20072ec828640b7d23a0cfdbccf0dea48e77ba3e
nvdimm-btt: use bvec_kmap_local in btt_rw_integrity

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>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20220303111905.321089-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvdimm/btt.c