From: Wanpeng Li Date: Thu, 4 Jul 2013 00:33:22 +0000 (+0800) Subject: mm/slab: Fix drain freelist excessively X-Git-Tag: v3.11-rc1~1^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fa8103be4c20f893486c533e4c6dfbc5ccddeb4;p=pandora-kernel.git 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 Signed-off-by: Wanpeng Li Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed