Home
last modified time | relevance | path

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

/mm/
Dmempool.c299 int mempool_resize(mempool_t *pool, int new_min_nr) in mempool_resize() argument
305 BUG_ON(new_min_nr <= 0); in mempool_resize()
309 if (new_min_nr <= pool->min_nr) { in mempool_resize()
310 while (new_min_nr < pool->curr_nr) { in mempool_resize()
316 pool->min_nr = new_min_nr; in mempool_resize()
322 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), in mempool_resize()
328 if (unlikely(new_min_nr <= pool->min_nr)) { in mempool_resize()
338 pool->min_nr = new_min_nr; in mempool_resize()