mm/vmalloc: use NUMA_NO_NODE
Subsystems (2)
PATCH 1/4 mm/vmalloc: use NUMA_NO_NODE
Use more appropriate "if (node == NUMA_NO_NODE)" instead of "if (node < 0)"
Signed-off-by Jianguo Wu <[email protected]>
--- mm/vmalloc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/vmalloc.c +1 -1
@@ -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);
Signature · 8 lines
1.7.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 3 lines · Jianguo Wu
Use more appropriate "if (node ==
NUMA_NO_NODE)" instead of "if (node < 0)"Signed-off-by Jianguo Wu <[email protected]>
Acked-by David Rientjes <[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>