Home
last modified time | relevance | path

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

/mm/
Dshmem.c1556 struct page *oldpage, *newpage; in shmem_replace_page() local
1562 oldpage = *pagep; in shmem_replace_page()
1563 entry.val = page_private(oldpage); in shmem_replace_page()
1565 swap_mapping = page_mapping(oldpage); in shmem_replace_page()
1577 copy_highpage(newpage, oldpage); in shmem_replace_page()
1591 error = shmem_replace_entry(swap_mapping, swap_index, oldpage, newpage); in shmem_replace_page()
1594 __dec_node_page_state(oldpage, NR_FILE_PAGES); in shmem_replace_page()
1604 oldpage = newpage; in shmem_replace_page()
1606 mem_cgroup_migrate(oldpage, newpage); in shmem_replace_page()
1611 ClearPageSwapCache(oldpage); in shmem_replace_page()
[all …]
Dksm.c2680 void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument
2684 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in ksm_migrate_page()
2686 VM_BUG_ON_PAGE(newpage->mapping != oldpage->mapping, newpage); in ksm_migrate_page()
2690 VM_BUG_ON_PAGE(stable_node->kpfn != page_to_pfn(oldpage), oldpage); in ksm_migrate_page()
2699 set_page_stable_node(oldpage, NULL); in ksm_migrate_page()
Dzsmalloc.c1893 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1901 if (page == oldpage) in replace_sub_page()
1909 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page()
1910 if (unlikely(PageHugeObject(oldpage))) in replace_sub_page()
1911 newpage->index = oldpage->index; in replace_sub_page()
1912 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
Dpage_owner.c223 void __copy_page_owner(struct page *oldpage, struct page *newpage) in __copy_page_owner() argument
225 struct page_ext *old_ext = lookup_page_ext(oldpage); in __copy_page_owner()
Dslub.c2254 struct page *oldpage; in put_cpu_partial() local
2262 oldpage = this_cpu_read(s->cpu_slab->partial); in put_cpu_partial()
2264 if (oldpage) { in put_cpu_partial()
2265 pobjects = oldpage->pobjects; in put_cpu_partial()
2266 pages = oldpage->pages; in put_cpu_partial()
2276 oldpage = NULL; in put_cpu_partial()
2288 page->next = oldpage; in put_cpu_partial()
2290 } while (this_cpu_cmpxchg(s->cpu_slab->partial, oldpage, page) in put_cpu_partial()
2291 != oldpage); in put_cpu_partial()
Dhugetlb.c5150 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument
5152 struct hstate *h = page_hstate(oldpage); in move_hugetlb_state()
5154 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state()
5168 int old_nid = page_to_nid(oldpage); in move_hugetlb_state()
5171 SetPageHugeTemporary(oldpage); in move_hugetlb_state()
Dmemcontrol.c6759 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) in mem_cgroup_migrate() argument
6766 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in mem_cgroup_migrate()
6768 VM_BUG_ON_PAGE(PageAnon(oldpage) != PageAnon(newpage), newpage); in mem_cgroup_migrate()
6769 VM_BUG_ON_PAGE(PageTransHuge(oldpage) != PageTransHuge(newpage), in mem_cgroup_migrate()
6780 memcg = oldpage->mem_cgroup; in mem_cgroup_migrate()