Lines Matching refs:mm
16 void vmacache_flush_all(struct mm_struct *mm) in vmacache_flush_all() argument
27 if (atomic_read(&mm->mm_users) == 1) in vmacache_flush_all()
38 if (mm == p->mm) in vmacache_flush_all()
53 static bool vmacache_valid_mm(struct mm_struct *mm) in vmacache_valid_mm() argument
55 return current->mm == mm && !(current->flags & PF_KTHREAD); in vmacache_valid_mm()
64 static bool vmacache_valid(struct mm_struct *mm) in vmacache_valid() argument
68 if (!vmacache_valid_mm(mm)) in vmacache_valid()
72 if (mm->vmacache_seqnum != curr->vmacache_seqnum) { in vmacache_valid()
77 curr->vmacache_seqnum = mm->vmacache_seqnum; in vmacache_valid()
84 struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr) in vmacache_find() argument
88 if (!vmacache_valid(mm)) in vmacache_find()
98 if (WARN_ON_ONCE(vma->vm_mm != mm)) in vmacache_find()
110 struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, in vmacache_find_exact() argument
116 if (!vmacache_valid(mm)) in vmacache_find_exact()