提交 4b90951c 编写于 作者: J Jianguo Wu 提交者: Linus Torvalds

mm/vmalloc: use NUMA_NO_NODE

Use more appropriate "if (node == NUMA_NO_NODE)" instead of "if (node < 0)"
Signed-off-by: NJianguo Wu <wujianguo@huawei.com>
Acked-by: NDavid Rientjes <rientjes@google.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 bafe1e14
...@@ -1577,7 +1577,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, ...@@ -1577,7 +1577,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask,
struct page *page; struct page *page;
gfp_t tmp_mask = gfp_mask | __GFP_NOWARN; gfp_t tmp_mask = gfp_mask | __GFP_NOWARN;
if (node < 0) if (node == NUMA_NO_NODE)
page = alloc_page(tmp_mask); page = alloc_page(tmp_mask);
else else
page = alloc_pages_node(node, tmp_mask, order); page = alloc_pages_node(node, tmp_mask, order);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册