mm: don't vmalloc a huge page_to_node array for do_pages_stat()
authorBrice Goglin <Brice.Goglin@inria.fr>
Sun, 19 Oct 2008 03:27:16 +0000 (20:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:33 +0000 (08:52 -0700)
commit2f007e74bb85b9fc4eab28524052161703300f1a
tree8fa77e687aa5fd807767484bdafcce86e46a56af
parente78bbfa8262424417a29349a8064a535053912b9
mm: don't vmalloc a huge page_to_node array for do_pages_stat()

do_pages_stat() does not need any page_to_node entry for real.  Just pass
the pointers to the user-space page address array and to the user-space
status array, and have do_pages_stat() traverse the former and fill the
latter directly.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c