diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-07-28 13:59:49 -0700 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-07-31 18:14:21 +0300 |
commit | eacbbae385bf492229e84024863960d3160547c7 (patch) | |
tree | 894a5d7dc97722e84f2b3a712962cbd8e44e1a64 /mm/slab.c | |
parent | acfe7d74484d6ccb25a80b8ff259fceceac0473e (diff) |
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.c | 2 |
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])) { |