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>
This commit is contained in:
committed by
Pekka Enberg
parent
acfe7d7448
commit
eacbbae385
@ -3403,7 +3403,7 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
|
|||||||
cache_alloc_debugcheck_before(cachep, flags);
|
cache_alloc_debugcheck_before(cachep, flags);
|
||||||
local_irq_save(save_flags);
|
local_irq_save(save_flags);
|
||||||
|
|
||||||
if (nodeid == -1)
|
if (nodeid == NUMA_NO_NODE)
|
||||||
nodeid = slab_node;
|
nodeid = slab_node;
|
||||||
|
|
||||||
if (unlikely(!cachep->nodelists[nodeid])) {
|
if (unlikely(!cachep->nodelists[nodeid])) {
|
||||||
|
Reference in New Issue
Block a user