diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2011-01-13 18:46:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 20:32:41 -0500 |
commit | 47ad8475c000141eacb3ecda5e5ce4b43a9cd04d (patch) | |
tree | 78c29aaf2ae9340e314a25ea08e9724471cf4414 /include/linux/mm.h | |
parent | 3f04f62f90d46a82dd73027c5fd7a15daed5c33d (diff) |
thp: clear_copy_huge_page
Move the copy/clear_huge_page functions to common code to share between
hugetlb.c and huge_memory.c.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 14ddd98b063f..cc6ab1038f6f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1589,5 +1589,14 @@ static inline int is_hwpoison_address(unsigned long addr) | |||
1589 | 1589 | ||
1590 | extern void dump_page(struct page *page); | 1590 | extern void dump_page(struct page *page); |
1591 | 1591 | ||
1592 | #if defined(CONFIG_TRANSPARENT_HUGEPAGE) || defined(CONFIG_HUGETLBFS) | ||
1593 | extern void clear_huge_page(struct page *page, | ||
1594 | unsigned long addr, | ||
1595 | unsigned int pages_per_huge_page); | ||
1596 | extern void copy_user_huge_page(struct page *dst, struct page *src, | ||
1597 | unsigned long addr, struct vm_area_struct *vma, | ||
1598 | unsigned int pages_per_huge_page); | ||
1599 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE || CONFIG_HUGETLBFS */ | ||
1600 | |||
1592 | #endif /* __KERNEL__ */ | 1601 | #endif /* __KERNEL__ */ |
1593 | #endif /* _LINUX_MM_H */ | 1602 | #endif /* _LINUX_MM_H */ |