Lines Matching refs:new_node
171 struct mpath_node *node, *new_node; in mesh_path_add() local
193 new_node = kmalloc(sizeof(struct mpath_node), GFP_KERNEL); in mesh_path_add()
194 if (!new_node) in mesh_path_add()
202 new_node->mpath = new_mpath; in mesh_path_add()
221 hlist_add_head_rcu(&new_node->list, bucket); in mesh_path_add()
249 kfree(new_node); in mesh_path_add()
261 struct mpath_node *node, *new_node; in mpp_path_add() local
281 new_node = kmalloc(sizeof(struct mpath_node), GFP_KERNEL); in mpp_path_add()
282 if (!new_node) in mpp_path_add()
291 new_node->mpath = new_mpath; in mpp_path_add()
307 hlist_add_head_rcu(&new_node->list, bucket); in mpp_path_add()
335 kfree(new_node); in mpp_path_add()
573 struct mpath_node *node, *new_node; in mesh_path_node_copy() local
576 new_node = kmalloc(sizeof(struct mpath_node), GFP_ATOMIC); in mesh_path_node_copy()
577 if (new_node == NULL) in mesh_path_node_copy()
582 new_node->mpath = mpath; in mesh_path_node_copy()
584 hlist_add_head(&new_node->list, in mesh_path_node_copy()