Searched refs:tofree (Results 1 – 1 of 1) sorted by relevance
211 struct kmem_cache_node *n, int tofree);2133 int tofree; in drain_array_locked() local2138 tofree = free_all ? ac->avail : (ac->limit + 4) / 5; in drain_array_locked()2139 if (tofree > ac->avail) in drain_array_locked()2140 tofree = (ac->avail + 1) / 2; in drain_array_locked()2142 free_block(cachep, ac->entry, tofree, node, list); in drain_array_locked()2143 ac->avail -= tofree; in drain_array_locked()2144 memmove(ac->entry, &(ac->entry[tofree]), sizeof(void *) * ac->avail); in drain_array_locked()2193 struct kmem_cache_node *n, int tofree) in drain_freelist() argument2200 while (nr_freed < tofree && !list_empty(&n->slabs_free)) { in drain_freelist()