Lines Matching refs:new_node
108 struct genradix_node *n, *new_node = NULL; in __genradix_ptr_alloc() local
121 if (!new_node) { in __genradix_ptr_alloc()
122 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc()
123 if (!new_node) in __genradix_ptr_alloc()
127 new_node->children[0] = n; in __genradix_ptr_alloc()
129 ((unsigned long) new_node | (n ? level + 1 : 0))); in __genradix_ptr_alloc()
133 new_node = NULL; in __genradix_ptr_alloc()
144 if (!new_node) { in __genradix_ptr_alloc()
145 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc()
146 if (!new_node) in __genradix_ptr_alloc()
150 if (!(n = cmpxchg_release(p, NULL, new_node))) in __genradix_ptr_alloc()
151 swap(n, new_node); in __genradix_ptr_alloc()
155 if (new_node) in __genradix_ptr_alloc()
156 genradix_free_node(new_node); in __genradix_ptr_alloc()