Home
last modified time | relevance | path

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

/Linux-v4.19/mm/
Dmempool.c293 int mempool_resize(mempool_t *pool, int new_min_nr) in mempool_resize() argument
299 BUG_ON(new_min_nr <= 0); in mempool_resize()
303 if (new_min_nr <= pool->min_nr) { in mempool_resize()
304 while (new_min_nr < pool->curr_nr) { in mempool_resize()
310 pool->min_nr = new_min_nr; in mempool_resize()
316 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), in mempool_resize()
322 if (unlikely(new_min_nr <= pool->min_nr)) { in mempool_resize()
332 pool->min_nr = new_min_nr; in mempool_resize()
/Linux-v4.19/include/linux/
Dmempool.h46 extern int mempool_resize(mempool_t *pool, int new_min_nr);