Lines Matching refs:old_page
154 struct page *old_page, struct page *new_page) in __replace_page() argument
156 struct folio *old_folio = page_folio(old_page); in __replace_page()
180 VM_BUG_ON_PAGE(addr != pvmw.address, old_page); in __replace_page()
191 dec_mm_counter(mm, mm_counter_file(old_page)); in __replace_page()
201 page_remove_rmap(old_page, vma, false); in __replace_page()
463 struct page *old_page, *new_page; in uprobe_write_opcode() local
476 old_page = get_user_page_vma_remote(mm, vaddr, gup_flags, &vma); in uprobe_write_opcode()
477 if (IS_ERR_OR_NULL(old_page)) in uprobe_write_opcode()
478 return old_page ? PTR_ERR(old_page) : 0; in uprobe_write_opcode()
480 ret = verify_opcode(old_page, vaddr, &opcode); in uprobe_write_opcode()
484 if (WARN(!is_register && PageCompound(old_page), in uprobe_write_opcode()
500 if (!is_register && !PageAnon(old_page)) in uprobe_write_opcode()
513 copy_highpage(new_page, old_page); in uprobe_write_opcode()
520 VM_BUG_ON_PAGE(!PageAnon(old_page), old_page); in uprobe_write_opcode()
540 ret = __replace_page(vma, vaddr, old_page, new_page); in uprobe_write_opcode()
544 put_page(old_page); in uprobe_write_opcode()