dm integrity: scale down the recalculate buffer if memory allocation fails
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 26 Jun 2023 14:46:57 +0000 (16:46 +0200)
committerMike Snitzer <snitzer@kernel.org>
Tue, 27 Jun 2023 20:05:50 +0000 (16:05 -0400)
commit3be1622895af25101f7046ed0b2286bead2219d4
treefd06a22896a7a4011e3a11c7930e8b50d86f94dc
parentda8b4fc1f63a01a0eca9338ae338b804c437b51f
dm integrity: scale down the recalculate buffer if memory allocation fails

If memory allocation fails, try to reduce the size of the recalculate
buffer and continue with that smaller buffer.

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