From: Mel Gorman Date: Tue, 16 Jun 2009 22:32:19 +0000 (-0700) Subject: mm: use alloc_pages_exact() in alloc_large_system_hash() to avoid duplicated logic X-Git-Tag: v2.6.31-rc1~299^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1dd268cf6306565a31a48deff8bf4f6b4b105f7;p=pandora-kernel.git mm: use alloc_pages_exact() in alloc_large_system_hash() to avoid duplicated logic alloc_large_system_hash() has logic for freeing pages at the end of an excessively large power-of-two buffer that is a duplicate of what is in alloc_pages_exact(). This patch converts alloc_large_system_hash() to use alloc_pages_exact(). Signed-off-by: Mel Gorman Acked-by: Hugh Dickins Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed