mm: use alloc_pages_exact() in alloc_large_system_hash() to avoid duplicated logic
authorMel Gorman <mel@csn.ul.ie>
Tue, 16 Jun 2009 22:32:19 +0000 (15:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:36 +0000 (19:47 -0700)
commita1dd268cf6306565a31a48deff8bf4f6b4b105f7
treea6d2cfb6647b22f5896813e7f39db8546e921ef2
parent72807a74c0172376bba6b5b27702c9f702b526e9
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 <mel@csn.ul.ie>
Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c