From: Jianguo Wu Date: Tue, 12 Nov 2013 23:07:11 +0000 (-0800) Subject: mm/vmalloc: use NUMA_NO_NODE X-Git-Tag: v3.13-rc1~106^2~244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b90951c0bd8ca6695837354a253794192f6dfd5;p=kernel%2Fkernel-generic.git mm/vmalloc: use NUMA_NO_NODE Use more appropriate "if (node == NUMA_NO_NODE)" instead of "if (node < 0)" Signed-off-by: Jianguo Wu Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 1074543..dea15e6 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1577,7 +1577,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, struct page *page; gfp_t tmp_mask = gfp_mask | __GFP_NOWARN; - if (node < 0) + if (node == NUMA_NO_NODE) page = alloc_page(tmp_mask); else page = alloc_pages_node(node, tmp_mask, order);