diff options
Diffstat (limited to 'include/linux/huge_mm.h')
-rw-r--r-- | include/linux/huge_mm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index b31cb7da0346..a1d26a98c655 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h | |||
@@ -159,6 +159,10 @@ static inline struct page *compound_trans_head(struct page *page) | |||
159 | } | 159 | } |
160 | return page; | 160 | return page; |
161 | } | 161 | } |
162 | |||
163 | extern int do_huge_pmd_numa_page(struct mm_struct *mm, unsigned long addr, | ||
164 | pmd_t pmd, pmd_t *pmdp); | ||
165 | |||
162 | #else /* CONFIG_TRANSPARENT_HUGEPAGE */ | 166 | #else /* CONFIG_TRANSPARENT_HUGEPAGE */ |
163 | #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; }) | 167 | #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; }) |
164 | #define HPAGE_PMD_MASK ({ BUILD_BUG(); 0; }) | 168 | #define HPAGE_PMD_MASK ({ BUILD_BUG(); 0; }) |
@@ -195,6 +199,12 @@ static inline int pmd_trans_huge_lock(pmd_t *pmd, | |||
195 | { | 199 | { |
196 | return 0; | 200 | return 0; |
197 | } | 201 | } |
202 | |||
203 | static inline int do_huge_pmd_numa_page(struct mm_struct *mm, unsigned long addr, | ||
204 | pmd_t pmd, pmd_t *pmdp) | ||
205 | { | ||
206 | } | ||
207 | |||
198 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ | 208 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ |
199 | 209 | ||
200 | #endif /* _LINUX_HUGE_MM_H */ | 210 | #endif /* _LINUX_HUGE_MM_H */ |