aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 3a790651475a..7224a4f07106 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -31,7 +31,6 @@ static unsigned int free_huge_pages_node[MAX_NUMNODES];
31static unsigned int surplus_huge_pages_node[MAX_NUMNODES]; 31static unsigned int surplus_huge_pages_node[MAX_NUMNODES];
32static gfp_t htlb_alloc_mask = GFP_HIGHUSER; 32static gfp_t htlb_alloc_mask = GFP_HIGHUSER;
33unsigned long hugepages_treat_as_movable; 33unsigned long hugepages_treat_as_movable;
34int hugetlb_dynamic_pool;
35unsigned long nr_overcommit_huge_pages; 34unsigned long nr_overcommit_huge_pages;
36static int hugetlb_next_nid; 35static int hugetlb_next_nid;
37 36
@@ -230,10 +229,6 @@ static struct page *alloc_buddy_huge_page(struct vm_area_struct *vma,
230 struct page *page; 229 struct page *page;
231 unsigned int nid; 230 unsigned int nid;
232 231
233 /* Check if the dynamic pool is enabled */
234 if (!hugetlb_dynamic_pool)
235 return NULL;
236
237 /* 232 /*
238 * Assume we will successfully allocate the surplus page to 233 * Assume we will successfully allocate the surplus page to
239 * prevent racing processes from causing the surplus to exceed 234 * prevent racing processes from causing the surplus to exceed