dm integrity: optimize writing dm-bufio buffers that are partially changed
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 30 Apr 2017 21:31:22 +0000 (17:31 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Aug 2017 15:47:17 +0000 (11:47 -0400)
commit1e3b21c6fb671a5ce9d77a05a8bde805d8908467
tree58617942ff3b8497c396750161e8b29416e970c2
parentdc6364b5170dc446fca076d6523aaebc339d6511
dm integrity: optimize writing dm-bufio buffers that are partially changed

Rather than write the entire dm-bufio buffer when only a subset is
changed, improve dm-bufio (and dm-integrity) by only writing the subset
of the buffer that changed.

Update dm-integrity to make use of dm-bufio's new
dm_bufio_mark_partial_buffer_dirty() interface.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c
drivers/md/dm-bufio.h
drivers/md/dm-integrity.c