Skip to content

Commit

Permalink
slub: Use NUMA_NO_NODE in get_partial
Browse files Browse the repository at this point in the history
A -1 was leftover during the conversion.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Apr 17, 2011
1 parent 607bf32 commit 33de04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ static struct page *get_partial(struct kmem_cache *s, gfp_t flags, int node)
int searchnode = (node == NUMA_NO_NODE) ? numa_node_id() : node;

page = get_partial_node(get_node(s, searchnode));
if (page || node != -1)
if (page || node != NUMA_NO_NODE)
return page;

return get_any_partial(s, flags);
Expand Down

0 comments on commit 33de04e

Please sign in to comment.