Skip to content

RFC Replace 'numnodes' with 'node_online_map'

Matthew Dobson lkml 1 version New

Get series with b4
b4 am 1103838712.3945.12.camel@arrakis

Versions newest first

  1. v1 RFC Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Replace 'numnodes' with 'node_online_map' - alphaarch/alpha/mm/numa.c+5 -50 replies
2/10Replace 'numnodes' with 'node_online_map' - armarch/arm/mm/init.c arch/arm/mm/mm-armv.c arch/arm26/mm/init.c +1 more+18 -230 replies
3/10Replace 'numnodes' with 'node_online_map' - i386arch/i386/kernel/mpparse.c arch/i386/kernel/numaq.c arch/i386/kernel/srat.c +3 more+51 -400 replies
4/10Replace 'numnodes' with 'node_online_map' - ia64arch/ia64/kernel/acpi.c arch/ia64/kernel/topology.c arch/ia64/mm/discontig.c +7 more+85 -700 replies
5/10Replace 'numnodes' with 'node_online_map' - m32rarch/m32r/kernel/setup.c arch/m32r/mm/discontig.c arch/m32r/mm/init.c+9 -70 replies
6/10Replace 'numnodes' with 'node_online_map' - mipsarch/mips/sgi-ip27/ip27-init.c arch/mips/sgi-ip27/ip27-klnuma.c arch/mips/sgi-ip27/ip27-memory.c +4 more+44 -470 replies
7/10Replace 'numnodes' with 'node_online_map' - pariscarch/parisc/mm/init.c+0 -20 replies
8/10Replace 'numnodes' with 'node_online_map' - ppc64arch/ppc64/mm/init.c arch/ppc64/mm/numa.c+7 -90 replies
9/10Replace 'numnodes' with 'node_online_map' - x86_64arch/x86_64/kernel/setup64.c arch/x86_64/mm/k8topology.c arch/x86_64/mm/numa.c +2 more+19 -240 replies
10/10Replace 'numnodes' with 'node_online_map' - arch-independentDocumentation/vm/numa drivers/base/node.c include/linux/mmzone.h +4 more+34 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/10] Replace 'numnodes' with 'node_online_map'

The next 10 messages will contain 10 patches to remove the global variable 'numnodes' and replace it's use with manipulations of 'node_online_map'. This will remove the requirement that nodes be numbered sequentially [0 ... (numnodes-1)] with no gaps in the numbering. The removal of this requirement will facilitate node HotPlug as well as remove the need for some of the arch-specific node renumbering schemes in the kernel. Several architectures have to map their native node numbers to 'Linux' node numbers, and I hope that some of this may be removed now.

The following 10 patches replace numnodes in arch-independent code and the 9 architectures that reference numnodes (alpha, arm, i386, ia64, m32r, mips, parisc, ppc64, & x86_64). A rollup patch has been lightly tested (aka: booted) on x86 & ppc64.

Cheers!

-Matt