diff options
author | Paul Jackson <pj@sgi.com> | 2006-03-22 09:09:11 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 16:54:06 +0100 |
commit | 442295c94bf650221af3ef20fc68fa3e93876818 (patch) | |
tree | 32d5cae69596ec7729172901487cc08a357448f1 /mm/slab.c | |
parent | [PATCH] mm: hugetlb alloc_fresh_huge_page bogus node loop fix (diff) | |
download | linux-442295c94bf650221af3ef20fc68fa3e93876818.tar.xz linux-442295c94bf650221af3ef20fc68fa3e93876818.zip |
[PATCH] mm: slab cache interleave rotor fix
The alien cache rotor in mm/slab.c assumes that the first online node is
node 0. Eventually for some archs, especially with hotplug, this will no
longer be true.
Fix the interleave rotor to handle the general case of node numbering.
Signed-off-by: Paul Jackson <pj@sgi.com>
Acked-by: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c index 6b691ecbac44..1c8f5ee230d5 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -830,7 +830,7 @@ static void init_reap_node(int cpu) node = next_node(cpu_to_node(cpu), node_online_map); if (node == MAX_NUMNODES) - node = 0; + node = first_node(node_online_map); __get_cpu_var(reap_node) = node; } |