diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ksm.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 2d64ff30c0de..0e26de6adb51 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h | |||
@@ -18,8 +18,7 @@ struct mmu_gather; | |||
18 | int ksm_madvise(struct vm_area_struct *vma, unsigned long start, | 18 | int ksm_madvise(struct vm_area_struct *vma, unsigned long start, |
19 | unsigned long end, int advice, unsigned long *vm_flags); | 19 | unsigned long end, int advice, unsigned long *vm_flags); |
20 | int __ksm_enter(struct mm_struct *mm); | 20 | int __ksm_enter(struct mm_struct *mm); |
21 | void __ksm_exit(struct mm_struct *mm, | 21 | void __ksm_exit(struct mm_struct *mm); |
22 | struct mmu_gather **tlbp, unsigned long end); | ||
23 | 22 | ||
24 | static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) | 23 | static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) |
25 | { | 24 | { |
@@ -41,11 +40,10 @@ static inline bool ksm_test_exit(struct mm_struct *mm) | |||
41 | return atomic_read(&mm->mm_users) == 0; | 40 | return atomic_read(&mm->mm_users) == 0; |
42 | } | 41 | } |
43 | 42 | ||
44 | static inline void ksm_exit(struct mm_struct *mm, | 43 | static inline void ksm_exit(struct mm_struct *mm) |
45 | struct mmu_gather **tlbp, unsigned long end) | ||
46 | { | 44 | { |
47 | if (test_bit(MMF_VM_MERGEABLE, &mm->flags)) | 45 | if (test_bit(MMF_VM_MERGEABLE, &mm->flags)) |
48 | __ksm_exit(mm, tlbp, end); | 46 | __ksm_exit(mm); |
49 | } | 47 | } |
50 | 48 | ||
51 | /* | 49 | /* |
@@ -86,8 +84,7 @@ static inline bool ksm_test_exit(struct mm_struct *mm) | |||
86 | return 0; | 84 | return 0; |
87 | } | 85 | } |
88 | 86 | ||
89 | static inline void ksm_exit(struct mm_struct *mm, | 87 | static inline void ksm_exit(struct mm_struct *mm) |
90 | struct mmu_gather **tlbp, unsigned long end) | ||
91 | { | 88 | { |
92 | } | 89 | } |
93 | 90 | ||