dm integrity: improve discard in journal mode
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 22 Mar 2020 19:42:27 +0000 (20:42 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 17:09:49 +0000 (13:09 -0400)
commit31843edab7cb3924006544b901c9cab33941b684
treefa7c14f97320a2c77e4392c1af7707918fcba0ce
parent84597a44a9d86ac949900441cea7da0af0f2f473
dm integrity: improve discard in journal mode

When we discard something that is present in the journal, we flush the
journal first, so that discarded blocks are not overwritten by the journal
content.

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