Lines Matching refs:old_page
155 struct page *old_page, struct page *new_page) in __replace_page() argument
157 struct folio *old_folio = page_folio(old_page); in __replace_page()
181 VM_BUG_ON_PAGE(addr != pvmw.address, old_page); in __replace_page()
192 dec_mm_counter(mm, mm_counter_file(old_page)); in __replace_page()
202 page_remove_rmap(old_page, vma, false); in __replace_page()
465 struct page *old_page, *new_page; in uprobe_write_opcode() local
479 &old_page, &vma, NULL); in uprobe_write_opcode()
483 ret = verify_opcode(old_page, vaddr, &opcode); in uprobe_write_opcode()
487 if (WARN(!is_register && PageCompound(old_page), in uprobe_write_opcode()
503 if (!is_register && !PageAnon(old_page)) in uprobe_write_opcode()
516 copy_highpage(new_page, old_page); in uprobe_write_opcode()
523 VM_BUG_ON_PAGE(!PageAnon(old_page), old_page); in uprobe_write_opcode()
543 ret = __replace_page(vma, vaddr, old_page, new_page); in uprobe_write_opcode()
547 put_page(old_page); in uprobe_write_opcode()