diff options
author | Jianguo Wu <wujianguo@huawei.com> | 2013-11-13 00:07:11 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 04:09:02 +0100 |
commit | 4b90951c0bd8ca6695837354a253794192f6dfd5 (patch) | |
tree | df46133519735a78fb8326069a0f684e181b034d /mm/vmalloc.c | |
parent | ksm: remove redundant __GFP_ZERO from kcalloc (diff) | |
download | linux-4b90951c0bd8ca6695837354a253794192f6dfd5.tar.xz linux-4b90951c0bd8ca6695837354a253794192f6dfd5.zip |
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>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 107454312d5e..dea15e6bfc8d 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); |