rculfhash cleanup: count percpu deletes in the positive range
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Sep 2011 12:44:49 +0000 (08:44 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Sep 2011 13:24:48 +0000 (09:24 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c

index 1487980c832c115154937cda4b185024636f9e44..6045f5965c4d55207a84145031a1763a447d748c 100644 (file)
@@ -583,7 +583,7 @@ void ht_count_del(struct cds_lfht *ht, unsigned long size)
        cpu = ht_get_cpu();
        if (unlikely(cpu < 0))
                return;
-       percpu_count = uatomic_add_return(&ht->percpu_count[cpu].del, -1);
+       percpu_count = uatomic_add_return(&ht->percpu_count[cpu].del, 1);
        if (unlikely(!(percpu_count & ((1UL << COUNT_COMMIT_ORDER) - 1)))) {
                unsigned long count;
 
This page took 0.026183 seconds and 4 git commands to generate.