rculfhash: reinstate i - 1 for shrink
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Sep 2011 02:33:56 +0000 (19:33 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Sep 2011 02:33:56 +0000 (19:33 -0700)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index 2565099d2c12b633dce919e927363b10ff63912c..0b3996416c270072b069fe700764515165bc50b5 100644 (file)
@@ -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 =
This page took 0.026025 seconds and 4 git commands to generate.