Skip to content

Commit

Permalink
slab: use NUMA_NO_NODE
Browse files Browse the repository at this point in the history
Use the nice enumerated constant.

Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
  • Loading branch information
akpm00 authored and penberg committed Jul 31, 2011
1 parent acfe7d7 commit eacbbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit eacbbae

Please sign in to comment.