All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] mm/vmalloc: use NUMA_NO_NODE
@ 2013-08-30  1:21 ` Jianguo Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Jianguo Wu @ 2013-08-30  1:21 UTC (permalink / raw)
  To: Andrew Morton, David Rientjes; +Cc: linux-mm, linux-kernel, Joonsoo Kim

Use more appropriate "if (node == NUMA_NO_NODE)" instead of "if (node < 0)"

Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
---
 mm/vmalloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 13a5495..f5483f8 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1582,7 +1582,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);
-- 
1.7.1


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-30 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30  1:21 [PATCH 1/4] mm/vmalloc: use NUMA_NO_NODE Jianguo Wu
2013-08-30  1:21 ` Jianguo Wu
2013-08-30 21:48 ` David Rientjes
2013-08-30 21:48   ` David Rientjes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.