dm integrity: reduce vmalloc space footprint on 32-bit architectures
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 26 Jun 2023 14:44:34 +0000 (16:44 +0200)
committerMike Snitzer <snitzer@kernel.org>
Tue, 27 Jun 2023 20:00:54 +0000 (16:00 -0400)
commit6d50eb4725934fd22f5eeccb401000687c790fd0
treed65f1d962121c2fbdbd50638f52c53979f400302
parent81ca2dbefaabe1a2ca1c7cfc84dfd45c072c82a6
dm integrity: reduce vmalloc space footprint on 32-bit architectures

It was reported that dm-integrity runs out of vmalloc space on 32-bit
architectures. On x86, there is only 128MiB vmalloc space and dm-integrity
consumes it quickly because it has a 64MiB journal and 8MiB recalculate
buffer.

Fix this by reducing the size of the journal to 4MiB and the size of
the recalculate buffer to 1MiB, so that multiple dm-integrity devices
can be created and activated on 32-bit architectures.

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