]> asedeno.scripts.mit.edu Git - linux.git/commit
dm integrity: flush journal on suspend when using separate metadata device
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jul 2018 18:13:32 +0000 (20:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:26 +0000 (15:24 -0400)
commit747829a8e6c6a65e096ce8dd79506cbcf83951ad
tree8d87021fa40345f6a0685d230556cf4e2f8c061a
parent1f9fc0b826119f8d76d33c3bf60b7426be6dc19e
dm integrity: flush journal on suspend when using separate metadata device

Flush the journal on suspend when using separate data and metadata devices,
so that the metadata device can be discarded and the table can be reloaded
with a linear target pointing to the data device.

NOTE: the journal is deliberately not flushed when using the same device
for metadata and data, so that the journal replay code is tested.

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