Skip to content

Commit

Permalink
[PATCH] mm: slab cache interleave rotor fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Jackson authored and Linus Torvalds committed Mar 22, 2006
1 parent fdb7cc5 commit 442295c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 442295c

Please sign in to comment.