dm integrity: add optional discard support
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 22 Mar 2020 19:42:26 +0000 (20:42 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 17:05:25 +0000 (13:05 -0400)
commit84597a44a9d86ac949900441cea7da0af0f2f473
treea54ad6f1c099de446541fbdf7046bf46fdd2fabd
parent1ac2c15a7bf859b92de269ba58597c94ce10811f
dm integrity: add optional discard support

Add an argument "allow_discards" that enables discard processing on
dm-integrity device. Discards are only allowed to devices using
internal hash.

When a block is discarded the integrity tag is filled with
DISCARD_FILLER (0xf6) bytes.

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