projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: fix node approx counting
[urcu.git]
/
rculfhash.c
diff --git
a/rculfhash.c
b/rculfhash.c
index 93c2d7850fad9da9c333b47f738af08758ed62ed..7e959fb4cd8228b161cbb7b4516ff36c4224270b 100644
(file)
--- 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;
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;
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);
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;
if (nr_cpus_mask >= 0) {
int i;
This page took
0.023357 seconds
and
4
git commands to generate.