File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -759,14 +759,6 @@ static inline struct page *alloc_hugepage_vma(int defrag,
759
759
HPAGE_PMD_ORDER , vma , haddr , nd );
760
760
}
761
761
762
- #ifndef CONFIG_NUMA
763
- static inline struct page * alloc_hugepage (int defrag )
764
- {
765
- return alloc_pages (alloc_hugepage_gfpmask (defrag , 0 ),
766
- HPAGE_PMD_ORDER );
767
- }
768
- #endif
769
-
770
762
static bool set_huge_zero_page (pgtable_t pgtable , struct mm_struct * mm ,
771
763
struct vm_area_struct * vma , unsigned long haddr , pmd_t * pmd ,
772
764
struct page * zero_page )
@@ -2251,6 +2243,12 @@ static struct page
2251
2243
return * hpage ;
2252
2244
}
2253
2245
#else
2246
+ static inline struct page * alloc_hugepage (int defrag )
2247
+ {
2248
+ return alloc_pages (alloc_hugepage_gfpmask (defrag , 0 ),
2249
+ HPAGE_PMD_ORDER );
2250
+ }
2251
+
2254
2252
static struct page * khugepaged_alloc_hugepage (bool * wait )
2255
2253
{
2256
2254
struct page * hpage ;
You can’t perform that action at this time.
0 commit comments