]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Use the nice enumerated constant.
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 16 Jul 2011 13:31:08 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:18 +0000 (15:05 +1000)
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.c

index 1e523ed47c619d385465a7080f44fabe68d115cb..ddcc5f2cf29a2a245d15639bc92ca1e7d52224af 100644 (file)
--- 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])) {