Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/slab: Fix drain freelist excessively
The drain_freelist is called to drain slabs_free lists for cache reap, cache shrink, memory hotplug callback etc. The tofree parameter should be the number of slab to free instead of the number of slab objects to free. This patch fix the callers that pass # of objects. Make sure they pass # of slabs. Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Wanpeng Li <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
- Loading branch information