diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-07-28 16:59:49 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-07-31 11:14:21 -0400 |
commit | eacbbae385bf492229e84024863960d3160547c7 (patch) | |
tree | 894a5d7dc97722e84f2b3a712962cbd8e44e1a64 /mm | |
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')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3403,7 +3403,7 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, | |||
3403 | cache_alloc_debugcheck_before(cachep, flags); | 3403 | cache_alloc_debugcheck_before(cachep, flags); |
3404 | local_irq_save(save_flags); | 3404 | local_irq_save(save_flags); |
3405 | 3405 | ||
3406 | if (nodeid == -1) | 3406 | if (nodeid == NUMA_NO_NODE) |
3407 | nodeid = slab_node; | 3407 | nodeid = slab_node; |
3408 | 3408 | ||
3409 | if (unlikely(!cachep->nodelists[nodeid])) { | 3409 | if (unlikely(!cachep->nodelists[nodeid])) { |