]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: cope with no remap space being allocated for a numa node
authorAndy Whitcroft <apw@shadowen.org>
Tue, 20 May 2008 10:01:19 +0000 (11:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 20 May 2008 12:10:50 +0000 (14:10 +0200)
commit84d6bd0e272e6eace1e7e4c501f32bddfb665bb2
tree9b86cf80ba7a02290fa01552dc24947fa1763096
parentb9ada4281c48076bdb252813be24ddb57e17cade
x86: cope with no remap space being allocated for a numa node

When allocating the pgdat's for numa nodes on x86_32 we attempt to place
them in the numa remap space for that node.  However should the node not
have any remap space allocated (such as due to having non-ram pages in
the remap location in the node) then we will incorrectly place the pgdat
at zero.  Check we have remap available, falling back to node 0 memory
where we do not.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/discontig_32.c