Lines Matching refs:vma
38 if (pmd_none(*pmd) || !walk->vma) { in walk_pmd_range()
135 struct vm_area_struct *vma = walk->vma; in walk_hugetlb_range() local
136 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range()
176 struct vm_area_struct *vma = walk->vma; in walk_page_test() local
189 if (vma->vm_flags & VM_PFNMAP) { in walk_page_test()
202 struct vm_area_struct *vma = walk->vma; in __walk_page_range() local
204 if (vma && is_vm_hugetlb_page(vma)) { in __walk_page_range()
248 struct vm_area_struct *vma; in walk_page_range() local
258 vma = find_vma(walk->mm, start); in walk_page_range()
260 if (!vma) { /* after the last vma */ in walk_page_range()
261 walk->vma = NULL; in walk_page_range()
263 } else if (start < vma->vm_start) { /* outside vma */ in walk_page_range()
264 walk->vma = NULL; in walk_page_range()
265 next = min(end, vma->vm_start); in walk_page_range()
267 walk->vma = vma; in walk_page_range()
268 next = min(end, vma->vm_end); in walk_page_range()
269 vma = vma->vm_next; in walk_page_range()
284 if (walk->vma || walk->pte_hole) in walk_page_range()
292 int walk_page_vma(struct vm_area_struct *vma, struct mm_walk *walk) in walk_page_vma() argument
300 VM_BUG_ON(!vma); in walk_page_vma()
301 walk->vma = vma; in walk_page_vma()
302 err = walk_page_test(vma->vm_start, vma->vm_end, walk); in walk_page_vma()
307 return __walk_page_range(vma->vm_start, vma->vm_end, walk); in walk_page_vma()