call_rcu implementation: add missing static
[urcu.git] / rculfhash.c
index 197a00f14984d09d8d3e08068a8f7bc89318b636..824a940391461a1a3b7f1db0a847be38e84dd741 100644 (file)
 /*
  * Define the minimum table size.
  */
-#define MIN_TABLE_SIZE                 128
+//#define MIN_TABLE_SIZE                       128
+#define MIN_TABLE_SIZE                 1
 
 #if (CAA_BITS_PER_LONG == 32)
 #define MAX_TABLE_ORDER                        32
@@ -1272,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.022834 seconds and 4 git commands to generate.