Lines Matching refs:end

57 		     unsigned long start, unsigned long end, int behavior)  in madvise_behavior()  argument
107 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
139 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_behavior()
166 if (end != vma->vm_end) { in madvise_behavior()
171 error = __split_vma(mm, vma, end, 0); in madvise_behavior()
194 unsigned long end, struct mm_walk *walk) in swapin_walk_pmd_entry() argument
203 for (index = start; index != end; index += PAGE_SIZE) { in swapin_walk_pmd_entry()
229 unsigned long start, unsigned long end) in force_swapin_readahead() argument
237 walk_page_range(start, end, &walk); in force_swapin_readahead()
243 unsigned long start, unsigned long end, in force_shm_swapin_readahead() argument
250 for (; start < end; start += PAGE_SIZE) { in force_shm_swapin_readahead()
275 unsigned long start, unsigned long end) in madvise_willneed() argument
282 force_swapin_readahead(vma, start, end); in madvise_willneed()
287 force_shm_swapin_readahead(vma, start, end, in madvise_willneed()
302 if (end > vma->vm_end) in madvise_willneed()
303 end = vma->vm_end; in madvise_willneed()
304 end = ((end - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff; in madvise_willneed()
306 force_page_cache_readahead(file->f_mapping, file, start, end - start); in madvise_willneed()
311 unsigned long end, struct mm_walk *walk) in madvise_free_pte_range() argument
323 next = pmd_addr_end(addr, end); in madvise_free_pte_range()
335 for (; addr != end; pte++, addr += PAGE_SIZE) { in madvise_free_pte_range()
445 unsigned long addr, unsigned long end) in madvise_free_page_range() argument
454 walk_page_range(addr, end, &free_walk); in madvise_free_page_range()
461 unsigned long start, end; in madvise_free_single_vma() local
472 end = min(vma->vm_end, end_addr); in madvise_free_single_vma()
473 if (end <= vma->vm_start) in madvise_free_single_vma()
477 tlb_gather_mmu(&tlb, mm, start, end); in madvise_free_single_vma()
480 mmu_notifier_invalidate_range_start(mm, start, end); in madvise_free_single_vma()
481 madvise_free_page_range(&tlb, vma, start, end); in madvise_free_single_vma()
482 mmu_notifier_invalidate_range_end(mm, start, end); in madvise_free_single_vma()
483 tlb_finish_mmu(&tlb, start, end); in madvise_free_single_vma()
508 unsigned long start, unsigned long end) in madvise_dontneed_single_vma() argument
510 zap_page_range(vma, start, end - start); in madvise_dontneed_single_vma()
516 unsigned long start, unsigned long end, in madvise_dontneed_free() argument
523 if (!userfaultfd_remove(vma, start, end)) { in madvise_dontneed_free()
544 if (end > vma->vm_end) { in madvise_dontneed_free()
557 end = vma->vm_end; in madvise_dontneed_free()
559 VM_WARN_ON(start >= end); in madvise_dontneed_free()
563 return madvise_dontneed_single_vma(vma, start, end); in madvise_dontneed_free()
565 return madvise_free_single_vma(vma, start, end); in madvise_dontneed_free()
576 unsigned long start, unsigned long end) in madvise_remove() argument
606 if (userfaultfd_remove(vma, start, end)) { in madvise_remove()
612 offset, end - start); in madvise_remove()
623 unsigned long start, unsigned long end) in madvise_inject_error() argument
633 for (; start < end; start += PAGE_SIZE << order) { in madvise_inject_error()
689 unsigned long start, unsigned long end, int behavior) in madvise_vma() argument
693 return madvise_remove(vma, prev, start, end); in madvise_vma()
695 return madvise_willneed(vma, prev, start, end); in madvise_vma()
698 return madvise_dontneed_free(vma, prev, start, end, behavior); in madvise_vma()
700 return madvise_behavior(vma, prev, start, end, behavior); in madvise_vma()
803 unsigned long end, tmp; in SYSCALL_DEFINE3() local
822 end = start + len; in SYSCALL_DEFINE3()
823 if (end < start) in SYSCALL_DEFINE3()
827 if (end == start) in SYSCALL_DEFINE3()
863 if (start >= end) in SYSCALL_DEFINE3()
869 if (end < tmp) in SYSCALL_DEFINE3()
870 tmp = end; in SYSCALL_DEFINE3()
880 if (start >= end) in SYSCALL_DEFINE3()