• Home
  • Raw
  • Download

Lines Matching refs:new_len

320 		unsigned long new_len, unsigned long new_addr,  in move_vma()  argument
355 new_vma = copy_vma(&vma, new_addr, new_len, new_pgoff, in move_vma()
377 old_len = new_len; in move_vma()
383 new_addr, new_addr + new_len); in move_vma()
405 vm_stat_account(mm, vma->vm_flags, new_len >> PAGE_SHIFT); in move_vma()
426 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma()
434 unsigned long old_len, unsigned long new_len, unsigned long *p) in vma_to_resize() argument
463 if (new_len == old_len) in vma_to_resize()
469 if (pgoff + (new_len >> PAGE_SHIFT) < pgoff) in vma_to_resize()
479 locked += new_len - old_len; in vma_to_resize()
485 (new_len - old_len) >> PAGE_SHIFT)) in vma_to_resize()
489 unsigned long charged = (new_len - old_len) >> PAGE_SHIFT; in vma_to_resize()
499 unsigned long new_addr, unsigned long new_len, bool *locked, in mremap_to() argument
513 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
517 if (addr + old_len > new_addr && new_addr + new_len > addr) in mremap_to()
537 ret = do_munmap(mm, new_addr, new_len, uf_unmap_early); in mremap_to()
541 if (old_len >= new_len) { in mremap_to()
542 ret = do_munmap(mm, addr+new_len, old_len - new_len, uf_unmap); in mremap_to()
543 if (ret && old_len != new_len) in mremap_to()
545 old_len = new_len; in mremap_to()
548 vma = vma_to_resize(addr, old_len, new_len, &charged); in mremap_to()
558 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
564 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked, uf, in mremap_to()
596 unsigned long, new_len, unsigned long, flags, in SYSCALL_DEFINE5() argument
622 new_len = PAGE_ALIGN(new_len); in SYSCALL_DEFINE5()
629 if (!new_len) in SYSCALL_DEFINE5()
636 ret = mremap_to(addr, old_len, new_addr, new_len, in SYSCALL_DEFINE5()
647 if (old_len >= new_len) { in SYSCALL_DEFINE5()
650 retval = __do_munmap(mm, addr+new_len, old_len - new_len, in SYSCALL_DEFINE5()
652 if (retval < 0 && old_len != new_len) { in SYSCALL_DEFINE5()
665 vma = vma_to_resize(addr, old_len, new_len, &charged); in SYSCALL_DEFINE5()
675 if (vma_expandable(vma, new_len - old_len)) { in SYSCALL_DEFINE5()
676 int pages = (new_len - old_len) >> PAGE_SHIFT; in SYSCALL_DEFINE5()
678 if (vma_adjust(vma, vma->vm_start, addr + new_len, in SYSCALL_DEFINE5()
705 new_addr = get_unmapped_area(vma->vm_file, 0, new_len, in SYSCALL_DEFINE5()
714 ret = move_vma(vma, addr, old_len, new_len, new_addr, in SYSCALL_DEFINE5()
726 if (locked && new_len > old_len) in SYSCALL_DEFINE5()
727 mm_populate(new_addr + old_len, new_len - old_len); in SYSCALL_DEFINE5()