aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2011-01-13 18:46:47 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 20:32:41 -0500
commit47ad8475c000141eacb3ecda5e5ce4b43a9cd04d (patch)
tree78c29aaf2ae9340e314a25ea08e9724471cf4414 /include/linux/mm.h
parent3f04f62f90d46a82dd73027c5fd7a15daed5c33d (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.h9
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
1590extern void dump_page(struct page *page); 1590extern void dump_page(struct page *page);
1591 1591
1592#if defined(CONFIG_TRANSPARENT_HUGEPAGE) || defined(CONFIG_HUGETLBFS)
1593extern void clear_huge_page(struct page *page,
1594 unsigned long addr,
1595 unsigned int pages_per_huge_page);
1596extern 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 */