From: Johannes Weiner Date: Tue, 10 Jan 2012 23:08:15 +0000 (-0800) Subject: mm: bootmem: try harder to free pages in bulk X-Git-Tag: v3.3-rc1~113^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=799f933a82d878d7f15215473c5561ce984ada75;p=pandora-kernel.git mm: bootmem: try harder to free pages in bulk The loop that frees pages to the page allocator while bootstrapping tries to free higher-order blocks only when the starting address is aligned to that block size. Otherwise it will free all pages on that node one-by-one. Change it to free individual pages up to the first aligned block and then try higher-order frees from there. Signed-off-by: Johannes Weiner Cc: Uwe Kleine-König Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed