rculfhash: fix add_unique node counting
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Sep 2011 10:29:31 +0000 (06:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Sep 2011 10:29:31 +0000 (06:29 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index 40f6ff59be9b5427a64d9d4a9b07524a10fe7c6c..824a940391461a1a3b7f1db0a847be38e84dd741 100644 (file)
@@ -1273,7 +1273,7 @@ struct cds_lfht_node *cds_lfht_add_unique(struct cds_lfht *ht,
 
        size = rcu_dereference(ht->t.size);
        ret = _cds_lfht_add(ht, size, node, 1, 0);
-       if (ret != node)
+       if (ret == node)
                ht_count_add(ht, size);
        return ret;
 }
This page took 0.027788 seconds and 4 git commands to generate.