summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2021-04-27 17:57:43 +0200
committerMike Snitzer <snitzer@redhat.com>2021-04-30 20:02:05 +0200
commitb1a2b9332050c7ae32a22c2c74bc443e39f37b23 (patch)
treee08de323c56bf31941bceacd15b4cfbbb39d2d62 /drivers
parentdm integrity: don't re-write metadata if discarding same blocks (diff)
downloadlinux-b1a2b9332050c7ae32a22c2c74bc443e39f37b23.tar.xz
linux-b1a2b9332050c7ae32a22c2c74bc443e39f37b23.zip
dm integrity: increase RECALC_SECTORS to improve recalculate speed
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>
Diffstat (limited to 'drivers')
-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 3b54b7f8c9b9..45658162e2c9 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -35,7 +35,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
#define BITMAP_BLOCK_SIZE 4096 /* don't change it */
#define BITMAP_FLUSH_INTERVAL (10 * HZ)