Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
if (node_flag_ptr && ja_node_ptr(*node_flag_ptr) != NULL) {
/*
- * Attach point is non-NULL: it has been updated between
+ * Target node is non-NULL: it has been updated between
* RCU lookup and lock acquisition. We need to re-try
* lookup and attach.
*/
}
assert(shadow_node->nr_child > 0);
shadow_nodes[nr_shadow++] = shadow_node;
- if (shadow_node->nr_child == 1)
+ if (shadow_node->nr_child == 1 && i > 1)
nr_clear++;
nr_branch++;
if (shadow_node->nr_child > 1 || i == 1) {