aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 2f8241f300f5..7b9b6015b2ec 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -875,7 +875,7 @@ static void return_unused_surplus_pages(struct hstate *h,
875 * can no longer free unreserved surplus pages. This occurs when 875 * can no longer free unreserved surplus pages. This occurs when
876 * the nodes with surplus pages have no free pages. 876 * the nodes with surplus pages have no free pages.
877 */ 877 */
878 unsigned long remaining_iterations = num_online_nodes(); 878 unsigned long remaining_iterations = nr_online_nodes;
879 879
880 /* Uncommit the reservation */ 880 /* Uncommit the reservation */
881 h->resv_huge_pages -= unused_resv_pages; 881 h->resv_huge_pages -= unused_resv_pages;
@@ -904,7 +904,7 @@ static void return_unused_surplus_pages(struct hstate *h,
904 h->surplus_huge_pages--; 904 h->surplus_huge_pages--;
905 h->surplus_huge_pages_node[nid]--; 905 h->surplus_huge_pages_node[nid]--;
906 nr_pages--; 906 nr_pages--;
907 remaining_iterations = num_online_nodes(); 907 remaining_iterations = nr_online_nodes;
908 } 908 }
909 } 909 }
910} 910}