[PATCH] mm: hugetlb alloc_fresh_huge_page bogus node loop fix
authorPaul Jackson <pj@sgi.com>
Wed, 22 Mar 2006 08:09:10 +0000 (00:09 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:06 +0000 (07:54 -0800)
commitfdb7cc59084ba7eef935e4e40aaaf538ee34c625
treed31bd847f2d9ea3f5b2a632c718b53797172af88
parent9b65ef59d42a56fa1358958ede77aaa5bac385a8
[PATCH] mm: hugetlb alloc_fresh_huge_page bogus node loop fix

Fix bogus node loop in hugetlb.c alloc_fresh_huge_page(), which was
assuming that nodes are numbered contiguously from 0 to num_online_nodes().
Once the hotplug folks get this far, that will be false.

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