diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index f10cc274a7d9..c001f846f17d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1031,6 +1031,7 @@ int __weak alloc_bootmem_huge_page(struct hstate *h) | |||
1031 | NODE_DATA(h->next_nid_to_alloc), | 1031 | NODE_DATA(h->next_nid_to_alloc), |
1032 | huge_page_size(h), huge_page_size(h), 0); | 1032 | huge_page_size(h), huge_page_size(h), 0); |
1033 | 1033 | ||
1034 | hstate_next_node_to_alloc(h); | ||
1034 | if (addr) { | 1035 | if (addr) { |
1035 | /* | 1036 | /* |
1036 | * Use the beginning of the huge page to store the | 1037 | * Use the beginning of the huge page to store the |
@@ -1040,7 +1041,6 @@ int __weak alloc_bootmem_huge_page(struct hstate *h) | |||
1040 | m = addr; | 1041 | m = addr; |
1041 | goto found; | 1042 | goto found; |
1042 | } | 1043 | } |
1043 | hstate_next_node_to_alloc(h); | ||
1044 | nr_nodes--; | 1044 | nr_nodes--; |
1045 | } | 1045 | } |
1046 | return 0; | 1046 | return 0; |