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,
68 pool->elements = kmalloc_node(min_nr * sizeof(void *),
75 pool->min_nr = min_nr;
84 while (pool->curr_nr < pool->min_nr) {
123 if (new_min_nr <= pool->min_nr) {
130 pool->min_nr = new_min_nr;
141 if (unlikely(new_min_nr <= pool->min_nr)) {
151 pool->min_nr = new_min_nr;
153 while (pool->curr_nr < pool->min_nr) {
159 if (pool->curr_nr < pool->min_nr) {
186 BUG_ON(pool->curr_nr != pool->min_nr);
265 if (pool->curr_nr < pool->min_nr) {
267 if (pool->curr_nr < pool->min_nr) {