Searched refs:oldpage (Results 1 – 7 of 7) sorted by relevance
/mm/ |
D | shmem.c | 1640 struct page *oldpage, *newpage; in shmem_replace_page() local 1646 oldpage = *pagep; in shmem_replace_page() 1647 entry.val = page_private(oldpage); in shmem_replace_page() 1649 swap_mapping = page_mapping(oldpage); in shmem_replace_page() 1661 copy_highpage(newpage, oldpage); in shmem_replace_page() 1675 error = shmem_replace_entry(swap_mapping, swap_index, oldpage, newpage); in shmem_replace_page() 1677 mem_cgroup_migrate(oldpage, newpage); in shmem_replace_page() 1679 __dec_lruvec_page_state(oldpage, NR_FILE_PAGES); in shmem_replace_page() 1689 oldpage = newpage; in shmem_replace_page() 1695 ClearPageSwapCache(oldpage); in shmem_replace_page() [all …]
|
D | ksm.c | 2676 void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument 2680 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in ksm_migrate_page() 2682 VM_BUG_ON_PAGE(newpage->mapping != oldpage->mapping, newpage); in ksm_migrate_page() 2686 VM_BUG_ON_PAGE(stable_node->kpfn != page_to_pfn(oldpage), oldpage); in ksm_migrate_page() 2695 set_page_stable_node(oldpage, NULL); in ksm_migrate_page()
|
D | zsmalloc.c | 1877 struct page *newpage, struct page *oldpage) in replace_sub_page() argument 1885 if (page == oldpage) in replace_sub_page() 1893 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page() 1894 if (unlikely(PageHugeObject(oldpage))) in replace_sub_page() 1895 newpage->index = oldpage->index; in replace_sub_page() 1896 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
|
D | page_owner.c | 258 void __copy_page_owner(struct page *oldpage, struct page *newpage) in __copy_page_owner() argument 264 old_ext = page_ext_get(oldpage); in __copy_page_owner()
|
D | slub.c | 2435 struct page *oldpage; in put_cpu_partial() local 2443 oldpage = this_cpu_read(s->cpu_slab->partial); in put_cpu_partial() 2445 if (oldpage) { in put_cpu_partial() 2446 pobjects = oldpage->pobjects; in put_cpu_partial() 2447 pages = oldpage->pages; in put_cpu_partial() 2457 oldpage = NULL; in put_cpu_partial() 2469 page->next = oldpage; in put_cpu_partial() 2471 } while (this_cpu_cmpxchg(s->cpu_slab->partial, oldpage, page) in put_cpu_partial() 2472 != oldpage); in put_cpu_partial()
|
D | hugetlb.c | 5739 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument 5741 struct hstate *h = page_hstate(oldpage); in move_hugetlb_state() 5743 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state() 5757 int old_nid = page_to_nid(oldpage); in move_hugetlb_state() 5760 SetPageHugeTemporary(oldpage); in move_hugetlb_state()
|
D | memcontrol.c | 7039 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) in mem_cgroup_migrate() argument 7045 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in mem_cgroup_migrate() 7047 VM_BUG_ON_PAGE(PageAnon(oldpage) != PageAnon(newpage), newpage); in mem_cgroup_migrate() 7048 VM_BUG_ON_PAGE(PageTransHuge(oldpage) != PageTransHuge(newpage), in mem_cgroup_migrate() 7059 memcg = oldpage->mem_cgroup; in mem_cgroup_migrate()
|