Lines Matching refs:min_nr
20 BUG_ON(pool->curr_nr >= pool->min_nr);
42 * @min_nr: the minimum number of elements guaranteed to be
54 mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn,
57 return mempool_create_node(min_nr,alloc_fn,free_fn, pool_data,-1);
61 mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn,
69 pool->elements = kmalloc_node(min_nr * sizeof(void *),
76 pool->min_nr = min_nr;
85 while (pool->curr_nr < pool->min_nr) {
124 if (new_min_nr <= pool->min_nr) {
131 pool->min_nr = new_min_nr;
142 if (unlikely(new_min_nr <= pool->min_nr)) {
152 pool->min_nr = new_min_nr;
154 while (pool->curr_nr < pool->min_nr) {
160 if (pool->curr_nr < pool->min_nr) {
187 BUG_ON(pool->curr_nr != pool->min_nr);
263 if (pool->curr_nr < pool->min_nr) {
265 if (pool->curr_nr < pool->min_nr) {