Lines Matching refs:new
106 struct rb_node **new = &(root->rb_node), *parent = NULL; in cgroup_storage_insert() local
108 while (*new) { in cgroup_storage_insert()
111 this = container_of(*new, struct bpf_cgroup_storage, node); in cgroup_storage_insert()
113 parent = *new; in cgroup_storage_insert()
116 new = &((*new)->rb_left); in cgroup_storage_insert()
119 new = &((*new)->rb_right); in cgroup_storage_insert()
126 rb_link_node(&storage->node, parent, new); in cgroup_storage_insert()
148 struct bpf_storage_buffer *new; in cgroup_storage_update_elem() local
167 new = bpf_map_kmalloc_node(map, struct_size(new, data, map->value_size), in cgroup_storage_update_elem()
170 if (!new) in cgroup_storage_update_elem()
173 memcpy(&new->data[0], value, map->value_size); in cgroup_storage_update_elem()
174 check_and_init_map_value(map, new->data); in cgroup_storage_update_elem()
176 new = xchg(&storage->buf, new); in cgroup_storage_update_elem()
177 kfree_rcu(new, rcu); in cgroup_storage_update_elem()