Lines Matching refs:new_len

573 		unsigned long new_len, unsigned long new_addr,  in move_vma()  argument
577 long to_account = new_len - old_len; in move_vma()
597 to_account = new_len; in move_vma()
626 new_vma = copy_vma(&vma, new_addr, new_len, new_pgoff, in move_vma()
651 old_len = new_len; in move_vma()
681 vm_stat_account(mm, vma->vm_flags, new_len >> PAGE_SHIFT); in move_vma()
711 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma()
728 unsigned long old_len, unsigned long new_len, unsigned long flags) in vma_to_resize() argument
759 if (new_len == old_len) in vma_to_resize()
765 if (pgoff + (new_len >> PAGE_SHIFT) < pgoff) in vma_to_resize()
771 if (mlock_future_check(mm, vma->vm_flags, new_len - old_len)) in vma_to_resize()
775 (new_len - old_len) >> PAGE_SHIFT)) in vma_to_resize()
782 unsigned long new_addr, unsigned long new_len, bool *locked, in mremap_to() argument
795 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
799 if (addr + old_len > new_addr && new_addr + new_len > addr) in mremap_to()
820 ret = do_munmap(mm, new_addr, new_len, uf_unmap_early); in mremap_to()
825 if (old_len > new_len) { in mremap_to()
826 ret = do_munmap(mm, addr+new_len, old_len - new_len, uf_unmap); in mremap_to()
829 old_len = new_len; in mremap_to()
832 vma = vma_to_resize(addr, old_len, new_len, flags); in mremap_to()
851 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
861 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()
986 MA_STATE(mas, &mm->mm_mt, addr + new_len, addr + new_len); in SYSCALL_DEFINE5()
988 retval = do_mas_munmap(&mas, mm, addr + new_len, in SYSCALL_DEFINE5()
989 old_len - new_len, &uf_unmap, true); in SYSCALL_DEFINE5()
993 } else if (retval < 0 && old_len != new_len) { in SYSCALL_DEFINE5()
1005 vma = vma_to_resize(addr, old_len, new_len, flags); in SYSCALL_DEFINE5()
1015 if (vma_expandable(vma, new_len - old_len)) { in SYSCALL_DEFINE5()
1016 long pages = (new_len - old_len) >> PAGE_SHIFT; in SYSCALL_DEFINE5()
1018 unsigned long extension_end = addr + new_len; in SYSCALL_DEFINE5()
1067 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
1076 ret = move_vma(vma, addr, old_len, new_len, new_addr, in SYSCALL_DEFINE5()
1086 if (locked && new_len > old_len) in SYSCALL_DEFINE5()
1087 mm_populate(new_addr + old_len, new_len - old_len); in SYSCALL_DEFINE5()