X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=7e959fb4cd8228b161cbb7b4516ff36c4224270b;hp=93c2d7850fad9da9c333b47f738af08758ed62ed;hb=7ed7682ffb933c7376830bb73b7f5701e566a559;hpb=973e5e1b7837176071749d727e37bdfe9e3c4f0e diff --git a/rculfhash.c b/rculfhash.c index 93c2d78..7e959fb 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1455,7 +1455,7 @@ void cds_lfht_count_nodes(struct cds_lfht *ht, struct _cds_lfht_node *lookup; unsigned long nr_dummy = 0; - *approx_before = uatomic_read(&ht->count); + *approx_before = 0; if (nr_cpus_mask >= 0) { int i; @@ -1485,7 +1485,7 @@ void cds_lfht_count_nodes(struct cds_lfht *ht, node = clear_flag(next); } while (!is_end(node)); dbg_printf("number of dummy nodes: %lu\n", nr_dummy); - *approx_after = uatomic_read(&ht->count); + *approx_after = 0; if (nr_cpus_mask >= 0) { int i;