Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/mm/
Dmempool.c297 int mempool_resize(mempool_t *pool, int new_min_nr) in mempool_resize() argument
303 BUG_ON(new_min_nr <= 0); in mempool_resize()
307 if (new_min_nr <= pool->min_nr) { in mempool_resize()
308 while (new_min_nr < pool->curr_nr) { in mempool_resize()
314 pool->min_nr = new_min_nr; in mempool_resize()
320 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), in mempool_resize()
326 if (unlikely(new_min_nr <= pool->min_nr)) { in mempool_resize()
336 pool->min_nr = new_min_nr; in mempool_resize()
/kernel/linux/linux-5.10/include/linux/
Dmempool.h46 extern int mempool_resize(mempool_t *pool, int new_min_nr);