From: Mathieu Desnoyers Date: Sun, 11 Sep 2011 02:33:56 +0000 (-0700) Subject: rculfhash: reinstate i - 1 for shrink X-Git-Tag: v0.7.0~43^2~162 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1a68f1d99b97020243da2c47a81c74705dc3381;p=urcu.git rculfhash: reinstate i - 1 for shrink Signed-off-by: Mathieu Desnoyers --- 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 =