mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
mm/vmalloc: use NUMA_NO_NODE
Use more appropriate "if (node == NUMA_NO_NODE)" instead of "if (node < 0)" Signed-off-by: Jianguo Wu <wujianguo@huawei.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bafe1e1440
commit
4b90951c0b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user