summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-07-29 00:59:49 +0400
committerPekka Enberg <penberg@kernel.org>2011-07-31 19:14:21 +0400
commiteacbbae385bf492229e84024863960d3160547c7 (patch)
tree894a5d7dc97722e84f2b3a712962cbd8e44e1a64 /mm
parentacfe7d74484d6ccb25a80b8ff259fceceac0473e (diff)
downloadlinux-eacbbae385bf492229e84024863960d3160547c7.tar.xz
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')
-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])) {