Searched refs:new_elements (Results 1 – 1 of 1) sorted by relevance
302 void **new_elements; in mempool_resize() local322 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), in mempool_resize()324 if (!new_elements) in mempool_resize()331 kfree(new_elements); in mempool_resize()334 memcpy(new_elements, pool->elements, in mempool_resize()335 pool->curr_nr * sizeof(*new_elements)); in mempool_resize()337 pool->elements = new_elements; in mempool_resize()