Mel Gorman b5445f956e Allow nodes to exist that only contain ZONE_MOVABLE
With the introduction of kernelcore=, a configurable zone is created on
request.  In some cases, this value will be small enough that some nodes
contain only ZONE_MOVABLE.  On some NUMA configurations when this occurs,
arch-independent zone-sizing will get the size of the memory holes within
the node incorrect.  The value of present_pages goes negative and the boot
fails.

This patch fixes the bug in the calculation of the size of the hole.  The
test case is to boot test a NUMA machine with a low value of kernelcore=
before and after the patch is applied.  While this bug exists in early
kernel it cannot be triggered in practice.

This patch has been boot-tested on a variety machines with and without
kernelcore= set.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-26 11:35:19 -07:00
..
2007-07-19 10:04:41 -07:00
2007-07-17 10:22:59 -07:00
2007-07-24 12:24:59 -07:00
2007-07-21 17:49:16 -07:00
2007-07-26 11:35:17 -07:00
2007-02-15 09:57:03 -08:00
2007-07-19 10:04:45 -07:00
2007-07-19 10:04:45 -07:00
2007-05-21 09:18:19 -07:00
2007-05-07 12:12:55 -07:00
2005-04-16 15:20:36 -07:00
2007-05-07 12:12:54 -07:00
2007-07-24 12:24:59 -07:00
2007-07-21 17:49:16 -07:00
2007-07-18 08:47:39 -07:00
2007-07-17 10:22:59 -07:00