From: Mel Gorman Date: Tue, 16 Oct 2007 08:26:10 +0000 (-0700) Subject: Breakout page_order() to internal.h to avoid special knowledge of the buddy allocator X-Git-Tag: v2.6.24-rc1~1117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48f13bf3e742fca8aab87f6c39451d03bf5952d4;p=pandora-kernel.git Breakout page_order() to internal.h to avoid special knowledge of the buddy allocator The statistics patch later needs to know what order a free page is on the free lists. Rather than having special knowledge of page_private() when PageBuddy() is set, this patch places out page_order() in internal.h and adds a VM_BUG_ON to catch using it on non-PageBuddy pages. Signed-off-by: Mel Gorman Signed-off-by: Christoph Lameter Acked-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed