Lines Matching refs:mm
12 #include <linux/mm.h>
23 int ksm_enable_merge_any(struct mm_struct *mm);
24 int ksm_disable_merge_any(struct mm_struct *mm);
25 int ksm_disable(struct mm_struct *mm);
27 int __ksm_enter(struct mm_struct *mm);
28 void __ksm_exit(struct mm_struct *mm);
38 static inline void ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte)
42 mm->ksm_zero_pages--;
46 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
51 ret = __ksm_enter(mm);
57 set_bit(MMF_VM_MERGE_ANY, &mm->flags);
62 static inline void ksm_exit(struct mm_struct *mm)
64 if (test_bit(MMF_VM_MERGEABLE, &mm->flags))
65 __ksm_exit(mm);
100 static inline int ksm_disable(struct mm_struct *mm)
105 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
110 static inline void ksm_exit(struct mm_struct *mm)
114 static inline void ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte)