From e1a68f1d99b97020243da2c47a81c74705dc3381 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 10 Sep 2011 19:33:56 -0700 Subject: [PATCH] rculfhash: reinstate i - 1 for shrink Signed-off-by: Mathieu Desnoyers --- rculfhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rculfhash.c b/rculfhash.c index 2565099..0b39964 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -902,7 +902,7 @@ void fini_table(struct cds_lfht *ht, struct rcu_table *t, * removal so gc lookups use non-logically-removed dummy * nodes. */ - t->size = (i == 1) ? 0 : 1UL << (i - 2); + t->size = 1UL << (i - 1); /* Unlink */ for (j = 0; j < len; j++) { struct cds_lfht_node *fini_node = -- 2.34.1