From b533bb7a06af090847f7fc362f3a35ad2b034995 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 16 Jul 2019 14:45:34 +0200 Subject: [PATCH] logger: increase hash constants --- kernel/mars_trans_logger.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/mars_trans_logger.c b/kernel/mars_trans_logger.c index f8d8c560..41974001 100644 --- a/kernel/mars_trans_logger.c +++ b/kernel/mars_trans_logger.c @@ -77,9 +77,10 @@ struct trans_logger_hash_anchor { struct list_head hash_anchor; }; -#define NR_HASH_PAGES 64 - #define MAX_HASH_PAGES (PAGE_SIZE / sizeof(struct trans_logger_hash_anchor*)) + +#define NR_HASH_PAGES MAX_HASH_PAGES + #define HASH_PER_PAGE (PAGE_SIZE / sizeof(struct trans_logger_hash_anchor)) #define HASH_TOTAL (NR_HASH_PAGES * HASH_PER_PAGE)