Lines Matching defs:tofree
210 struct kmem_cache_node *n, int tofree);
2131 int tofree;
2136 tofree = free_all ? ac->avail : (ac->limit + 4) / 5;
2137 if (tofree > ac->avail)
2138 tofree = (ac->avail + 1) / 2;
2140 free_block(cachep, ac->entry, tofree, node, list);
2141 ac->avail -= tofree;
2142 memmove(ac->entry, &(ac->entry[tofree]), sizeof(void *) * ac->avail);
2186 * Specify the number of slabs to drain in tofree.
2191 struct kmem_cache_node *n, int tofree)
2198 while (nr_freed < tofree && !list_empty(&n->slabs_free)) {