summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-07-28 22:59:49 +0200
committerPekka Enberg <penberg@kernel.org>2011-07-31 17:14:21 +0200
commiteacbbae385bf492229e84024863960d3160547c7 (patch)
tree894a5d7dc97722e84f2b3a712962cbd8e44e1a64 /mm/slab.c
parentslab: remove one NR_CPUS dependency (diff)
downloadlinux-eacbbae385bf492229e84024863960d3160547c7.tar.xz
linux-eacbbae385bf492229e84024863960d3160547c7.zip
slab: use NUMA_NO_NODE
Use the nice enumerated constant. Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index b80282aef73b..95947400702b 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3403,7 +3403,7 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
cache_alloc_debugcheck_before(cachep, flags);
local_irq_save(save_flags);
- if (nodeid == -1)
+ if (nodeid == NUMA_NO_NODE)
nodeid = slab_node;
if (unlikely(!cachep->nodelists[nodeid])) {