Lines Matching refs:mm
16 void vmacache_flush_all(struct mm_struct *mm) in vmacache_flush_all() argument
29 if (atomic_read(&mm->mm_users) == 1) in vmacache_flush_all()
40 if (mm == p->mm) in vmacache_flush_all()
55 static inline bool vmacache_valid_mm(struct mm_struct *mm) in vmacache_valid_mm() argument
57 return current->mm == mm && !(current->flags & PF_KTHREAD); in vmacache_valid_mm()
66 static bool vmacache_valid(struct mm_struct *mm) in vmacache_valid() argument
70 if (!vmacache_valid_mm(mm)) in vmacache_valid()
74 if (mm->vmacache_seqnum != curr->vmacache_seqnum) { in vmacache_valid()
79 curr->vmacache_seqnum = mm->vmacache_seqnum; in vmacache_valid()
86 struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr) in vmacache_find() argument
90 if (!vmacache_valid(mm)) in vmacache_find()
100 if (WARN_ON_ONCE(vma->vm_mm != mm)) in vmacache_find()
112 struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, in vmacache_find_exact() argument
118 if (!vmacache_valid(mm)) in vmacache_find_exact()