Lines Matching refs:tofree
211 struct kmem_cache_node *n, int tofree);
2111 int tofree;
2116 tofree = free_all ? ac->avail : (ac->limit + 4) / 5;
2117 if (tofree > ac->avail)
2118 tofree = (ac->avail + 1) / 2;
2120 free_block(cachep, ac->entry, tofree, node, list);
2121 ac->avail -= tofree;
2122 memmove(ac->entry, &(ac->entry[tofree]), sizeof(void *) * ac->avail);
2166 * Specify the number of slabs to drain in tofree.
2171 struct kmem_cache_node *n, int tofree)
2178 while (nr_freed < tofree && !list_empty(&n->slabs_free)) {