summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2021-04-27 11:57:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-30 16:31:53 +0200
commit15569a09399ad24663310706da6f2208c34004ed (patch)
treeb32415cdc7bdd304735e79fbde16830955964f46
parentebd918f806bc93082dc661de92b0303f530c5a7e (diff)
downloadlinux-stable-15569a09399ad24663310706da6f2208c34004ed.tar.gz
linux-stable-15569a09399ad24663310706da6f2208c34004ed.tar.bz2
linux-stable-15569a09399ad24663310706da6f2208c34004ed.zip
dm integrity: increase RECALC_SECTORS to improve recalculate speed
[ Upstream commit b1a2b9332050c7ae32a22c2c74bc443e39f37b23 ] Increase RECALC_SECTORS because it improves recalculate speed slightly (from 390kiB/s to 410kiB/s). Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Stable-dep-of: 6d50eb472593 ("dm integrity: reduce vmalloc space footprint on 32-bit architectures") Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/md/dm-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c
index 0a4e440948f0..eead731a1aed 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -33,7 +33,7 @@
#define MIN_LOG2_INTERLEAVE_SECTORS 3
#define MAX_LOG2_INTERLEAVE_SECTORS 31
#define METADATA_WORKQUEUE_MAX_ACTIVE 16
-#define RECALC_SECTORS 8192
+#define RECALC_SECTORS 32768
#define RECALC_WRITE_SUPER 16
/*