]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix zone policy determination
authorChristoph Lameter <clameter@engr.sgi.com>
Fri, 6 Jan 2006 08:11:18 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:28 +0000 (08:33 -0800)
commit02a68a5ebc7dd823da7496116f42290103e1e4a9
tree7b79d20246b5c9b769e4f6172fe97e6f91fb921b
parent4be38e351c5f455f6f490f5aff29053e33ab4f99
[PATCH] Fix zone policy determination

The use k in the inner loop means that the highest zone nr is always used
if any zone of a node is populated.  This means that the policy zone is not
correctly determined on arches that do no use HIGHMEM like ia64.

Change the loop to decrement k which also simplifies the BUG_ON.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c