summaryrefslogtreecommitdiffstats
path: root/include/linux/khugepaged.h
diff options
context:
space:
mode:
authorKirill A. Shutemov2016-07-27 00:26:24 +0200
committerLinus Torvalds2016-07-27 01:19:19 +0200
commitb46e756f5e47031c67658ff036e5ffe27062fa43 (patch)
treea4d0acc705cfab9b3b386f7f144fcf80b03582b5 /include/linux/khugepaged.h
parentshmem, thp: respect MADV_{NO,}HUGEPAGE for file mappings (diff)
downloadkernel-qcow2-linux-b46e756f5e47031c67658ff036e5ffe27062fa43.tar.gz
kernel-qcow2-linux-b46e756f5e47031c67658ff036e5ffe27062fa43.tar.xz
kernel-qcow2-linux-b46e756f5e47031c67658ff036e5ffe27062fa43.zip
thp: extract khugepaged from mm/huge_memory.c
khugepaged implementation grew to the point when it deserve separate file in source. Let's move it to mm/khugepaged.c. Link: http://lkml.kernel.org/r/1466021202-61880-32-git-send-email-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/khugepaged.h')
-rw-r--r--include/linux/khugepaged.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/khugepaged.h b/include/linux/khugepaged.h
index eeb307985715..1e032a1ddb3e 100644
--- a/include/linux/khugepaged.h
+++ b/include/linux/khugepaged.h
@@ -4,6 +4,11 @@
#include <linux/sched.h> /* MMF_VM_HUGEPAGE */
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+extern struct attribute_group khugepaged_attr_group;
+
+extern int khugepaged_init(void);
+extern void khugepaged_destroy(void);
+extern int start_stop_khugepaged(void);
extern int __khugepaged_enter(struct mm_struct *mm);
extern void __khugepaged_exit(struct mm_struct *mm);
extern int khugepaged_enter_vma_merge(struct vm_area_struct *vma,