diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2016-05-20 02:11:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-20 04:12:14 +0200 |
commit | 54f18d35263334ebcc6bf409fee3c0c8c22e5588 (patch) | |
tree | 8e185ce58ffa288d0c58ff85bd235813ec54832e /mm/hugetlb.c | |
parent | mm/page_alloc: Remove useless parameter of __free_pages_boot_core (diff) | |
download | linux-54f18d35263334ebcc6bf409fee3c0c8c22e5588.tar.xz linux-54f18d35263334ebcc6bf409fee3c0c8c22e5588.zip |
mm/hugetlb.c: use first_memory_node
Instead of open-coding it.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0adb74d0a4e1..0f580ea7f41d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2684,8 +2684,8 @@ void __init hugetlb_add_hstate(unsigned int order) for (i = 0; i < MAX_NUMNODES; ++i) INIT_LIST_HEAD(&h->hugepage_freelists[i]); INIT_LIST_HEAD(&h->hugepage_activelist); - h->next_nid_to_alloc = first_node(node_states[N_MEMORY]); - h->next_nid_to_free = first_node(node_states[N_MEMORY]); + h->next_nid_to_alloc = first_memory_node; + h->next_nid_to_free = first_memory_node; snprintf(h->name, HSTATE_NAME_LEN, "hugepages-%lukB", huge_page_size(h)/1024); |