*
* Userspace RCU library - RCU Judy Array Shadow Node Hash Table
*
- * Copyright 2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2012-2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <stdint.h>
#include <errno.h>
#include <limits.h>
+#include <assert.h>
+#include <stdlib.h>
+#include <time.h>
#include <urcu/rcuja.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
-#include <assert.h>
#include <urcu-pointer.h>
-#include <stdlib.h>
-#include <time.h>
#include "rcuja-internal.h"
*/
__attribute__((visibility("protected")))
void rcuja_shadow_prune(struct cds_lfht *ht,
- unsigned int flags,
- void (*free_node_cb)(struct cds_ja_node *node))
+ unsigned int flags)
{
const struct rcu_flavor_struct *flavor;
struct cds_ja_shadow_node *shadow_node;
goto unlock;
if ((flags & RCUJA_SHADOW_CLEAR_FREE_NODE)
&& shadow_node->level) {
- if (shadow_node->level == shadow_node->ja->tree_depth - 1) {
- rcuja_free_all_children(shadow_node,
- shadow_node->node_flag,
- free_node_cb);
- }
if (flags & RCUJA_SHADOW_CLEAR_FREE_LOCK) {
flavor->update_call_rcu(&shadow_node->head,
free_shadow_node_and_node_and_lock);