Lines Matching defs:old_len

38 	MREMAP_NO_RESIZE,	/* old_len == new_len, if not moved, do nothing. */
39 MREMAP_SHRINK, /* old_len > new_len. */
40 MREMAP_EXPAND, /* old_len < new_len. */
53 unsigned long old_len; /* Length of range being remapped. */
67 unsigned long delta; /* Absolute delta of old_len,new_len. */
880 vrm->delta = abs_diff(vrm->old_len, vrm->new_len);
889 if (vrm->old_len > vrm->new_len)
903 unsigned long end_old = vrm->addr + vrm->old_len;
1036 unsigned long old_len = vrm->old_len;
1049 if (!err && vma->vm_end != old_addr + old_len)
1050 err = vma->vm_ops->may_split(vma, old_addr + old_len);
1062 err = ksm_madvise(vma, old_addr, old_addr + old_len,
1082 unsigned long len = vrm->old_len;
1191 PAGETABLE_MOVE(pmc, NULL, NULL, vrm->addr, vrm->new_addr, vrm->old_len);
1209 if (moved_len < vrm->old_len)
1227 vrm->old_len = vrm->new_len;
1249 unsigned long end = vrm->addr + vrm->old_len;
1302 * since do_munmap() will decrement it by old_len == new_len.
1323 * The user has requested that the VMA be shrunk (i.e., old_len > new_len), so
1399 vrm->old_len = vrm->new_len;
1402 /* MREMAP_DONTUNMAP expands by old_len since old_len == new_len */
1405 unsigned long pages = vrm->old_len >> PAGE_SHIFT;
1439 if (suffix_bytes != vrm->old_len)
1489 vrm->old_len = ALIGN(vrm->old_len, huge_page_size(h));
1502 if (vrm->new_len > vrm->old_len)
1520 * [addr, old_len) spans precisely to the end of the VMA, so try to
1606 if (vrm->old_len != vrm->new_len)
1622 vrm->new_addr, vrm->old_len);
1659 unsigned long old_len, new_len, pgoff;
1682 old_len = vrm->old_len;
1686 * !old_len is a special case where an attempt is made to 'duplicate'
1693 if (!old_len && !(vma->vm_flags & (VM_SHARED | VM_MAYSHARE))) {
1708 old_len = new_len;
1719 * old_len
1723 if (old_len > vma->vm_end - addr)
1726 if (new_len == old_len)
1795 if (flags & MREMAP_DONTUNMAP && vrm->old_len != vrm->new_len)
1826 unsigned long end = vrm->addr + vrm->old_len;
1837 * with all VMAs in the input range [addr, addr + old_len) being moved
1872 vrm->old_len = vrm->new_len = len;
1917 vrm->old_len = PAGE_ALIGN(vrm->old_len);
1948 mm_populate(vrm->new_addr + vrm->old_len, vrm->delta);
1961 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
1981 .old_len = old_len,