diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hugetlb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index d1db00790a84..2e02c4ed1035 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -68,6 +68,7 @@ void hugetlb_unreserve_pages(struct inode *inode, long offset, long freed); | |||
| 68 | int dequeue_hwpoisoned_huge_page(struct page *page); | 68 | int dequeue_hwpoisoned_huge_page(struct page *page); |
| 69 | bool isolate_huge_page(struct page *page, struct list_head *list); | 69 | bool isolate_huge_page(struct page *page, struct list_head *list); |
| 70 | void putback_active_hugepage(struct page *page); | 70 | void putback_active_hugepage(struct page *page); |
| 71 | bool is_hugepage_active(struct page *page); | ||
| 71 | void copy_huge_page(struct page *dst, struct page *src); | 72 | void copy_huge_page(struct page *dst, struct page *src); |
| 72 | 73 | ||
| 73 | #ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE | 74 | #ifdef CONFIG_ARCH_WANT_HUGE_PMD_SHARE |
| @@ -138,6 +139,7 @@ static inline int dequeue_hwpoisoned_huge_page(struct page *page) | |||
| 138 | 139 | ||
| 139 | #define isolate_huge_page(p, l) false | 140 | #define isolate_huge_page(p, l) false |
| 140 | #define putback_active_hugepage(p) do {} while (0) | 141 | #define putback_active_hugepage(p) do {} while (0) |
| 142 | #define is_hugepage_active(x) false | ||
| 141 | static inline void copy_huge_page(struct page *dst, struct page *src) | 143 | static inline void copy_huge_page(struct page *dst, struct page *src) |
| 142 | { | 144 | { |
| 143 | } | 145 | } |
| @@ -377,6 +379,9 @@ static inline pgoff_t basepage_index(struct page *page) | |||
| 377 | return __basepage_index(page); | 379 | return __basepage_index(page); |
| 378 | } | 380 | } |
| 379 | 381 | ||
| 382 | extern void dissolve_free_huge_pages(unsigned long start_pfn, | ||
| 383 | unsigned long end_pfn); | ||
| 384 | |||
| 380 | #else /* CONFIG_HUGETLB_PAGE */ | 385 | #else /* CONFIG_HUGETLB_PAGE */ |
| 381 | struct hstate {}; | 386 | struct hstate {}; |
| 382 | #define alloc_huge_page_node(h, nid) NULL | 387 | #define alloc_huge_page_node(h, nid) NULL |
| @@ -403,6 +408,7 @@ static inline pgoff_t basepage_index(struct page *page) | |||
| 403 | { | 408 | { |
| 404 | return page->index; | 409 | return page->index; |
| 405 | } | 410 | } |
| 411 | #define dissolve_free_huge_pages(s, e) do {} while (0) | ||
| 406 | #endif /* CONFIG_HUGETLB_PAGE */ | 412 | #endif /* CONFIG_HUGETLB_PAGE */ |
| 407 | 413 | ||
| 408 | #endif /* _LINUX_HUGETLB_H */ | 414 | #endif /* _LINUX_HUGETLB_H */ |
