[PATCH] NUMA: Add zone_to_nid function
authorChristoph Lameter <clameter@sgi.com>
Tue, 26 Sep 2006 06:31:55 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:52 +0000 (08:48 -0700)
commit89fa30242facca249aead2aac03c4c69764f911c
tree1ac46b4777b819f2a4793d8e37330576ae5089ec
parent4415cc8df630b05d3a54267d5f3e5c0b63a4ec05
[PATCH] NUMA: Add zone_to_nid function

There are many places where we need to determine the node of a zone.
Currently we use a difficult to read sequence of pointer dereferencing.
Put that into an inline function and use throughout VM.  Maybe we can find
a way to optimize the lookup in the future.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mm/discontig.c
arch/parisc/mm/init.c
include/linux/mm.h
kernel/cpuset.c
mm/hugetlb.c
mm/mempolicy.c
mm/oom_kill.c
mm/page_alloc.c
mm/vmscan.c