Home
last modified time | relevance | path

Searched refs:oldpage (Results 1 – 7 of 7) sorted by relevance

/mm/
Dshmem.c1645 struct page *oldpage, *newpage; in shmem_replace_page() local
1651 oldpage = *pagep; in shmem_replace_page()
1652 entry.val = page_private(oldpage); in shmem_replace_page()
1654 swap_mapping = page_mapping(oldpage); in shmem_replace_page()
1666 copy_highpage(newpage, oldpage); in shmem_replace_page()
1680 error = shmem_replace_entry(swap_mapping, swap_index, oldpage, newpage); in shmem_replace_page()
1682 mem_cgroup_migrate(oldpage, newpage); in shmem_replace_page()
1684 __dec_lruvec_page_state(oldpage, NR_FILE_PAGES); in shmem_replace_page()
1694 oldpage = newpage; in shmem_replace_page()
1700 ClearPageSwapCache(oldpage); in shmem_replace_page()
[all …]
Dksm.c2667 void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument
2671 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in ksm_migrate_page()
2673 VM_BUG_ON_PAGE(newpage->mapping != oldpage->mapping, newpage); in ksm_migrate_page()
2677 VM_BUG_ON_PAGE(stable_node->kpfn != page_to_pfn(oldpage), oldpage); in ksm_migrate_page()
2686 set_page_stable_node(oldpage, NULL); in ksm_migrate_page()
Dzsmalloc.c1872 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1880 if (page == oldpage) in replace_sub_page()
1888 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page()
1889 if (unlikely(PageHugeObject(oldpage))) in replace_sub_page()
1890 newpage->index = oldpage->index; in replace_sub_page()
1891 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
Dpage_owner.c241 void __copy_page_owner(struct page *oldpage, struct page *newpage) in __copy_page_owner() argument
247 old_ext = page_ext_get(oldpage); in __copy_page_owner()
Dslub.c2570 struct page *oldpage; in put_cpu_partial() local
2578 oldpage = this_cpu_read(s->cpu_slab->partial); in put_cpu_partial()
2580 if (oldpage) { in put_cpu_partial()
2581 if (drain && oldpage->pobjects > slub_cpu_partial(s)) { in put_cpu_partial()
2587 page_to_unfreeze = oldpage; in put_cpu_partial()
2588 oldpage = NULL; in put_cpu_partial()
2590 pobjects = oldpage->pobjects; in put_cpu_partial()
2591 pages = oldpage->pages; in put_cpu_partial()
2600 page->next = oldpage; in put_cpu_partial()
Dmemcontrol.c7068 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) in mem_cgroup_migrate() argument
7074 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in mem_cgroup_migrate()
7076 VM_BUG_ON_PAGE(PageAnon(oldpage) != PageAnon(newpage), newpage); in mem_cgroup_migrate()
7077 VM_BUG_ON_PAGE(PageTransHuge(oldpage) != PageTransHuge(newpage), in mem_cgroup_migrate()
7087 memcg = page_memcg(oldpage); in mem_cgroup_migrate()
7088 VM_WARN_ON_ONCE_PAGE(!memcg, oldpage); in mem_cgroup_migrate()
Dhugetlb.c6333 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument
6335 struct hstate *h = page_hstate(oldpage); in move_hugetlb_state()
6337 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state()
6351 int old_nid = page_to_nid(oldpage); in move_hugetlb_state()
6354 SetHPageTemporary(oldpage); in move_hugetlb_state()