Lines Matching refs:node
327 struct xa_node *node; in check_xa_shrink() local
341 node = xas.xa_node; in check_xa_shrink()
342 XA_BUG_ON(xa, xa_entry_locked(xa, node, 0) != xa_mk_value(0)); in check_xa_shrink()
346 XA_BUG_ON(xa, xa_entry_locked(xa, node, 0) != XA_RETRY_ENTRY); in check_xa_shrink()
359 node = xa_head(xa); in check_xa_shrink()
364 XA_BUG_ON(xa, xa_head(xa) == node); in check_xa_shrink()
368 XA_BUG_ON(xa, xa->xa_head != node); in check_xa_shrink()
1652 static void test_update_node(struct xa_node *node) in test_update_node() argument
1654 if (node->count && node->count == node->nr_values) { in test_update_node()
1655 if (list_empty(&node->private_list)) in test_update_node()
1656 list_add(&shadow_nodes, &node->private_list); in test_update_node()
1658 if (!list_empty(&node->private_list)) in test_update_node()
1659 list_del_init(&node->private_list); in test_update_node()
1665 struct xa_node *node; in shadow_remove() local
1668 while ((node = list_first_entry_or_null(&shadow_nodes, in shadow_remove()
1670 XA_BUG_ON(xa, node->array != xa); in shadow_remove()
1671 list_del_init(&node->private_list); in shadow_remove()
1672 xa_delete_node(node, test_update_node); in shadow_remove()