Lines Matching refs:mm
30 static inline bool vmacache_valid_mm(struct mm_struct *mm) in vmacache_valid_mm() argument
32 return current->mm == mm && !(current->flags & PF_KTHREAD); in vmacache_valid_mm()
41 static bool vmacache_valid(struct mm_struct *mm) in vmacache_valid() argument
45 if (!vmacache_valid_mm(mm)) in vmacache_valid()
49 if (mm->vmacache_seqnum != curr->vmacache.seqnum) { in vmacache_valid()
54 curr->vmacache.seqnum = mm->vmacache_seqnum; in vmacache_valid()
61 struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr) in vmacache_find() argument
68 if (!vmacache_valid(mm)) in vmacache_find()
76 if (WARN_ON_ONCE(vma->vm_mm != mm)) in vmacache_find()
92 struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, in vmacache_find_exact() argument
101 if (!vmacache_valid(mm)) in vmacache_find_exact()