OSDN Git Service

dm integrity: use bvec_kmap_local in __journal_read_write
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Oct 2021 13:44:04 +0000 (15:44 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Nov 2021 17:28:46 +0000 (13:28 -0400)
commit25058d1c725c70e52c7750a3fafabb78cadefd9b
tree8dd5f4189ca55c7e9671fa5e00433ba0133bd824
parentc12d205dae09da9623c6a4c35a9b17088a9b9a71
dm integrity: use bvec_kmap_local in __journal_read_write

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-integrity.c