Home
last modified time | relevance | path

Searched refs:new_min_nr (Results 1 – 2 of 2) sorted by relevance

/linux/mm/
A Dmempool.c298 int mempool_resize(mempool_t *pool, int new_min_nr) in mempool_resize() argument
304 BUG_ON(new_min_nr <= 0); in mempool_resize()
308 if (new_min_nr <= pool->min_nr) { in mempool_resize()
309 while (new_min_nr < pool->curr_nr) { in mempool_resize()
315 pool->min_nr = new_min_nr; in mempool_resize()
321 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), in mempool_resize()
327 if (unlikely(new_min_nr <= pool->min_nr)) { in mempool_resize()
337 pool->min_nr = new_min_nr; in mempool_resize()
/linux/include/linux/
A Dmempool.h46 extern int mempool_resize(mempool_t *pool, int new_min_nr);

Completed in 6 milliseconds