Lines Matching refs:vm_end
354 if (vma->vm_start > vma->vm_end) { in browse_rb()
356 vma->vm_start, vma->vm_end); in browse_rb()
370 pend = vma->vm_end; in browse_rb()
547 if (vma_tmp->vm_end > addr) { in find_vma_links()
621 nr_pages = (min(end, vma->vm_end) - in count_vma_pages_range()
631 overlap_len = min(end, vma->vm_end) - vma->vm_start; in count_vma_pages_range()
720 if (find_vma_links(mm, vma->vm_start, vma->vm_end, in __insert_vm_struct()
761 if (end >= next->vm_end) { in __vma_adjust()
773 VM_WARN_ON(end != next->vm_end); in __vma_adjust()
788 remove_next = 1 + (end > next->vm_end); in __vma_adjust()
790 end != next->vm_next->vm_end); in __vma_adjust()
792 end = next->vm_end; in __vma_adjust()
814 } else if (end < vma->vm_end) { in __vma_adjust()
820 adjust_next = -(vma->vm_end - end); in __vma_adjust()
846 uprobe_munmap(vma, vma->vm_start, vma->vm_end); in __vma_adjust()
849 uprobe_munmap(next, next->vm_start, next->vm_end); in __vma_adjust()
886 if (end != vma->vm_end) { in __vma_adjust()
887 vma->vm_end = end; in __vma_adjust()
958 uprobe_munmap(next, next->vm_start, next->vm_end); in __vma_adjust()
994 end = next->vm_end; in __vma_adjust()
1188 if (area && area->vm_end == end) /* cases 6, 7, 8 */ in vma_merge()
1193 VM_WARN_ON(area && end > area->vm_end); in vma_merge()
1199 if (prev && prev->vm_end == addr && in vma_merge()
1217 next->vm_end, prev->vm_pgoff, NULL, in vma_merge()
1236 if (prev && addr < prev->vm_end) /* case 4 */ in vma_merge()
1240 err = __vma_adjust(area, addr, next->vm_end, in vma_merge()
1273 return a->vm_end == b->vm_start && in anon_vma_compatible()
1814 vma->vm_end = addr + len; in mmap_region()
1856 merge = vma_merge(mm, prev, vma->vm_start, vma->vm_end, vma->vm_flags, in mmap_region()
1938 unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end); in mmap_region()
2357 if (tmp->vm_end > addr) { in find_vma()
2425 vma->vm_end - size; in acct_stack_growth()
2486 if (address > vma->vm_end) { in expand_upwards()
2490 grow = (address - vma->vm_end) >> PAGE_SHIFT; in expand_upwards()
2512 vma->vm_end = address; in expand_upwards()
2550 if (address - prev->vm_end < stack_guard_gap) in expand_downwards()
2569 size = vma->vm_end - address; in expand_downwards()
2643 populate_vma_page_range(prev, addr, prev->vm_end, NULL); in find_extend_vma()
2734 free_pgtables(&tlb, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS, in unmap_region()
2802 new->vm_end = addr; in __split_vma()
2823 err = vma_adjust(vma, addr, vma->vm_end, vma->vm_pgoff + in __split_vma()
2910 if (end < vma->vm_end && mm->map_count >= sysctl_max_map_count) in __do_munmap()
3057 if (start + size > vma->vm_end) { in SYSCALL_DEFINE5()
3062 if (next->vm_start != next->vm_prev->vm_end) in SYSCALL_DEFINE5()
3071 if (start + size <= next->vm_end) in SYSCALL_DEFINE5()
3100 min(tmp->vm_end, start + size)); in SYSCALL_DEFINE5()
3175 vma->vm_end = addr + len; in do_brk_flags()
3303 if (find_vma_links(mm, vma->vm_start, vma->vm_end, in insert_vm_struct()
3365 vma_start < new_vma->vm_end)) { in copy_vma()
3387 new_vma->vm_end = addr + len; in copy_vma()
3536 vma->vm_end = addr + len; in __install_special_mapping()