Lines Matching refs:new_len

568 		unsigned long new_len, unsigned long new_addr,  in move_vma()  argument
572 long to_account = new_len - old_len; in move_vma()
592 to_account = new_len; in move_vma()
621 new_vma = copy_vma(&vma, new_addr, new_len, new_pgoff, in move_vma()
646 old_len = new_len; in move_vma()
676 vm_stat_account(mm, vma->vm_flags, new_len >> PAGE_SHIFT); in move_vma()
706 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma()
723 unsigned long old_len, unsigned long new_len, unsigned long flags) in vma_to_resize() argument
754 if (new_len == old_len) in vma_to_resize()
760 if (pgoff + (new_len >> PAGE_SHIFT) < pgoff) in vma_to_resize()
770 locked += new_len - old_len; in vma_to_resize()
776 (new_len - old_len) >> PAGE_SHIFT)) in vma_to_resize()
783 unsigned long new_addr, unsigned long new_len, bool *locked, in mremap_to() argument
796 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
800 if (addr + old_len > new_addr && new_addr + new_len > addr) in mremap_to()
821 ret = do_munmap(mm, new_addr, new_len, uf_unmap_early); in mremap_to()
826 if (old_len >= new_len) { in mremap_to()
827 ret = do_munmap(mm, addr+new_len, old_len - new_len, uf_unmap); in mremap_to()
828 if (ret && old_len != new_len) in mremap_to()
830 old_len = new_len; in mremap_to()
833 vma = vma_to_resize(addr, old_len, new_len, flags); in mremap_to()
852 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
862 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked, flags, uf, in mremap_to()
890 unsigned long, new_len, unsigned long, flags, in SYSCALL_DEFINE5() argument
925 (!(flags & MREMAP_MAYMOVE) || old_len != new_len)) in SYSCALL_DEFINE5()
933 new_len = PAGE_ALIGN(new_len); in SYSCALL_DEFINE5()
940 if (!new_len) in SYSCALL_DEFINE5()
955 new_len = ALIGN(new_len, huge_page_size(h)); in SYSCALL_DEFINE5()
967 if (new_len > old_len) in SYSCALL_DEFINE5()
972 ret = mremap_to(addr, old_len, new_addr, new_len, in SYSCALL_DEFINE5()
984 if (old_len >= new_len) { in SYSCALL_DEFINE5()
987 retval = __do_munmap(mm, addr+new_len, old_len - new_len, in SYSCALL_DEFINE5()
989 if (retval < 0 && old_len != new_len) { in SYSCALL_DEFINE5()
1002 vma = vma_to_resize(addr, old_len, new_len, flags); in SYSCALL_DEFINE5()
1012 if (vma_expandable(vma, new_len - old_len)) { in SYSCALL_DEFINE5()
1013 long pages = (new_len - old_len) >> PAGE_SHIFT; in SYSCALL_DEFINE5()
1022 if (vma_adjust(vma, vma->vm_start, addr + new_len, in SYSCALL_DEFINE5()
1050 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
1059 ret = move_vma(vma, addr, old_len, new_len, new_addr, in SYSCALL_DEFINE5()
1069 if (locked && new_len > old_len) in SYSCALL_DEFINE5()
1070 mm_populate(new_addr + old_len, new_len - old_len); in SYSCALL_DEFINE5()