Lines Matching refs:vmi

584 	VMA_ITERATOR(vmi, vma->vm_mm, vma->vm_start);  in delete_vma_from_mm()
586 vma_iter_config(&vmi, vma->vm_start, vma->vm_end); in delete_vma_from_mm()
587 if (vma_iter_prealloc(&vmi, vma)) { in delete_vma_from_mm()
595 vma_iter_clear(&vmi); in delete_vma_from_mm()
628 VMA_ITERATOR(vmi, mm, addr); in find_vma()
630 return vma_iter_load(&vmi); in find_vma()
675 VMA_ITERATOR(vmi, mm, addr); in find_vma_exact()
677 vma = vma_iter_load(&vmi); in find_vma_exact()
1029 VMA_ITERATOR(vmi, current->mm, 0); in do_mmap()
1199 vma_iter_config(&vmi, vma->vm_start, vma->vm_end); in do_mmap()
1200 if (vma_iter_prealloc(&vmi, vma)) in do_mmap()
1206 vma_iter_store(&vmi, vma); in do_mmap()
1222 vma_iter_free(&vmi); in do_mmap()
1308 int split_vma(struct vma_iterator *vmi, struct vm_area_struct *vma, in split_vma() argument
1346 vma_iter_config(vmi, new->vm_start, new->vm_end); in split_vma()
1347 if (vma_iter_prealloc(vmi, vma)) { in split_vma()
1371 vma_iter_store(vmi, new); in split_vma()
1386 static int vmi_shrink_vma(struct vma_iterator *vmi, in vmi_shrink_vma() argument
1395 if (vma_iter_clear_gfp(vmi, from, vma->vm_end, GFP_KERNEL)) in vmi_shrink_vma()
1399 if (vma_iter_clear_gfp(vmi, vma->vm_start, to, GFP_KERNEL)) in vmi_shrink_vma()
1430 VMA_ITERATOR(vmi, mm, start); in do_munmap()
1442 vma = vma_find(&vmi, end); in do_munmap()
1461 vma = vma_find(&vmi, end); in do_munmap()
1475 ret = split_vma(&vmi, vma, start, 1); in do_munmap()
1479 return vmi_shrink_vma(&vmi, vma, start, end); in do_munmap()
1512 VMA_ITERATOR(vmi, mm, 0); in exit_mmap()
1525 for_each_vma(vmi, vma) { in exit_mmap()