]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35e889e8e62e309e594392230c02042d2ba2aac4
treea54ad6f1c099de446541fbdf7046bf46fdd2fabd
parent146c564a600c31314706f6c48971ee4da9707ad6
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