From: Mathieu Desnoyers Date: Tue, 20 Dec 2011 15:44:25 +0000 (-0500) Subject: _cds_lfht_del is not used for buckets anymore, remove parameter X-Git-Tag: v0.7.0~43^2~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b65ec430efc1882ba63452a7fae7bbeea9446526;p=userspace-rcu.git _cds_lfht_del is not used for buckets anymore, remove parameter Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash.c b/rculfhash.c index 5220cd5..8f2d8e4 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -929,8 +929,7 @@ end: static int _cds_lfht_del(struct cds_lfht *ht, unsigned long size, - struct cds_lfht_node *node, - int bucket_removal) + struct cds_lfht_node *node) { struct cds_lfht_node *bucket, *next; @@ -951,10 +950,7 @@ int _cds_lfht_del(struct cds_lfht *ht, unsigned long size, next = rcu_dereference(node->next); if (caa_unlikely(is_removed(next))) return -ENOENT; - if (bucket_removal) - assert(is_bucket(next)); - else - assert(!is_bucket(next)); + assert(!is_bucket(next)); /* * We set the REMOVED_FLAG unconditionally. Note that there may * be more than one concurrent thread setting this flag. @@ -1537,7 +1533,7 @@ int cds_lfht_del(struct cds_lfht *ht, struct cds_lfht_iter *iter) int ret; size = rcu_dereference(ht->size); - ret = _cds_lfht_del(ht, size, iter->node, 0); + ret = _cds_lfht_del(ht, size, iter->node); if (!ret) { hash = bit_reverse_ulong(iter->node->reverse_hash); ht_count_del(ht, size, hash);