From: Namhyung Kim Date: Tue, 22 Mar 2011 23:32:45 +0000 (-0700) Subject: mm: batch-free pcp list if possible X-Git-Tag: v2.6.39-rc1~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d16871d8c96deadc5f9753b6b096074f2cbcbe1;p=pandora-kernel.git mm: batch-free pcp list if possible free_pcppages_bulk() frees pages from pcp lists in a round-robin fashion by keeping batch_free counter. But it doesn't need to spin if there is only one non-empty list. This can be checked by batch_free == MIGRATE_PCPTYPES. [akpm@linux-foundation.org: fix comment] Signed-off-by: Namhyung Kim Acked-by: Johannes Weiner Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed