Lines Matching refs:old_addr
90 unsigned long old_addr, unsigned long old_end, in move_ptes() argument
100 unsigned long len = old_end - old_addr; in move_ptes()
135 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes()
143 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, in move_ptes()
147 pte = ptep_get_and_clear(mm, old_addr, old_pte); in move_ptes()
160 pte = move_pte(pte, new_vma->vm_page_prot, old_addr, new_addr); in move_ptes()
181 unsigned long old_addr, struct vm_area_struct *new_vma, in move_page_tables() argument
190 old_end = old_addr + len; in move_page_tables()
191 flush_cache_range(vma, old_addr, old_end); in move_page_tables()
193 mmun_start = old_addr; in move_page_tables()
197 for (; old_addr < old_end; old_addr += extent, new_addr += extent) { in move_page_tables()
199 next = (old_addr + PMD_SIZE) & PMD_MASK; in move_page_tables()
201 extent = next - old_addr; in move_page_tables()
202 if (extent > old_end - old_addr) in move_page_tables()
203 extent = old_end - old_addr; in move_page_tables()
204 old_pmd = get_old_pmd(vma->vm_mm, old_addr); in move_page_tables()
218 err = move_huge_pmd(vma, new_vma, old_addr, in move_page_tables()
227 split_huge_page_pmd(vma, old_addr, old_pmd); in move_page_tables()
239 move_ptes(vma, old_pmd, old_addr, old_addr + extent, in move_page_tables()
245 return len + old_addr - old_end; /* how much done */ in move_page_tables()
249 unsigned long old_addr, unsigned long old_len, in move_vma() argument
277 err = ksm_madvise(vma, old_addr, old_addr + old_len, in move_vma()
282 new_pgoff = vma->vm_pgoff + ((old_addr - vma->vm_start) >> PAGE_SHIFT); in move_vma()
288 moved_len = move_page_tables(vma, old_addr, new_vma, new_addr, old_len, in move_vma()
302 move_page_tables(new_vma, new_addr, vma, old_addr, moved_len, in move_vma()
306 old_addr = new_addr; in move_vma()
309 arch_remap(mm, old_addr, old_addr + old_len, in move_vma()
317 if (old_addr > vma->vm_start && in move_vma()
318 old_addr + old_len < vma->vm_end) in move_vma()
334 if (do_munmap(mm, old_addr, old_len) < 0) { in move_vma()