diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/huge_mm.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index 528454c2caa9..cc276d2c3a40 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h | |||
@@ -58,12 +58,11 @@ extern pmd_t *page_check_address_pmd(struct page *page, | |||
58 | 58 | ||
59 | #define HPAGE_PMD_ORDER (HPAGE_PMD_SHIFT-PAGE_SHIFT) | 59 | #define HPAGE_PMD_ORDER (HPAGE_PMD_SHIFT-PAGE_SHIFT) |
60 | #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) | 60 | #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) |
61 | #define HPAGE_PMD_SHIFT PMD_SHIFT | ||
62 | #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT) | ||
63 | #define HPAGE_PMD_MASK (~(HPAGE_PMD_SIZE - 1)) | ||
61 | 64 | ||
62 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 65 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
63 | #define HPAGE_PMD_SHIFT HPAGE_SHIFT | ||
64 | #define HPAGE_PMD_MASK HPAGE_MASK | ||
65 | #define HPAGE_PMD_SIZE HPAGE_SIZE | ||
66 | |||
67 | extern bool is_vma_temporary_stack(struct vm_area_struct *vma); | 66 | extern bool is_vma_temporary_stack(struct vm_area_struct *vma); |
68 | 67 | ||
69 | #define transparent_hugepage_enabled(__vma) \ | 68 | #define transparent_hugepage_enabled(__vma) \ |
@@ -181,9 +180,6 @@ extern int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vm | |||
181 | unsigned long addr, pmd_t pmd, pmd_t *pmdp); | 180 | unsigned long addr, pmd_t pmd, pmd_t *pmdp); |
182 | 181 | ||
183 | #else /* CONFIG_TRANSPARENT_HUGEPAGE */ | 182 | #else /* CONFIG_TRANSPARENT_HUGEPAGE */ |
184 | #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; }) | ||
185 | #define HPAGE_PMD_MASK ({ BUILD_BUG(); 0; }) | ||
186 | #define HPAGE_PMD_SIZE ({ BUILD_BUG(); 0; }) | ||
187 | 183 | ||
188 | #define hpage_nr_pages(x) 1 | 184 | #define hpage_nr_pages(x) 1 |
189 | 185 | ||