Home
last modified time | relevance | path

Searched refs:newpage (Results 1 – 10 of 10) sorted by relevance

/mm/
Dmigrate.c382 struct page *newpage, struct page *page, int extra_count) in migrate_page_move_mapping() argument
396 newpage->index = page->index; in migrate_page_move_mapping()
397 newpage->mapping = page->mapping; in migrate_page_move_mapping()
399 __SetPageSwapBacked(newpage); in migrate_page_move_mapping()
405 newzone = page_zone(newpage); in migrate_page_move_mapping()
422 newpage->index = page->index; in migrate_page_move_mapping()
423 newpage->mapping = page->mapping; in migrate_page_move_mapping()
424 page_ref_add(newpage, nr); /* add cache reference */ in migrate_page_move_mapping()
426 __SetPageSwapBacked(newpage); in migrate_page_move_mapping()
428 SetPageSwapCache(newpage); in migrate_page_move_mapping()
[all …]
Dballoon_compaction.c234 struct page *newpage, struct page *page, in balloon_page_migrate() argument
248 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in balloon_page_migrate()
250 return balloon->migratepage(balloon, newpage, page, mode); in balloon_page_migrate()
Dzsmalloc.c1872 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1881 pages[idx] = newpage; in replace_sub_page()
1888 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page()
1890 newpage->index = oldpage->index; in replace_sub_page()
1891 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
1950 static int zs_page_migrate(struct address_space *mapping, struct page *newpage, in zs_page_migrate() argument
2010 d_addr = kmap_atomic(newpage); in zs_page_migrate()
2023 new_obj = (unsigned long)location_to_obj(newpage, in zs_page_migrate()
2030 replace_sub_page(class, zspage, newpage, page); in zs_page_migrate()
2031 get_page(newpage); in zs_page_migrate()
[all …]
Dz3fold.c1601 static int z3fold_page_migrate(struct address_space *mapping, struct page *newpage, in z3fold_page_migrate() argument
1611 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in z3fold_page_migrate()
1627 new_zhdr = page_address(newpage); in z3fold_page_migrate()
1629 newpage->private = page->private; in z3fold_page_migrate()
1643 get_page(newpage); in z3fold_page_migrate()
1651 set_bit(NEEDS_COMPACTING, &newpage->private); in z3fold_page_migrate()
1654 list_add(&newpage->lru, &pool->lru); in z3fold_page_migrate()
1656 __SetPageMovable(newpage, new_mapping); in z3fold_page_migrate()
Dshmem.c1645 struct page *oldpage, *newpage; in shmem_replace_page() local
1661 newpage = shmem_alloc_page(gfp, info, index); in shmem_replace_page()
1662 if (!newpage) in shmem_replace_page()
1665 get_page(newpage); in shmem_replace_page()
1666 copy_highpage(newpage, oldpage); in shmem_replace_page()
1667 flush_dcache_page(newpage); in shmem_replace_page()
1669 __SetPageLocked(newpage); in shmem_replace_page()
1670 __SetPageSwapBacked(newpage); in shmem_replace_page()
1671 SetPageUptodate(newpage); in shmem_replace_page()
1672 set_page_private(newpage, entry.val); in shmem_replace_page()
[all …]
Dksm.c2667 void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument
2672 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in ksm_migrate_page()
2673 VM_BUG_ON_PAGE(newpage->mapping != oldpage->mapping, newpage); in ksm_migrate_page()
2675 stable_node = page_stable_node(newpage); in ksm_migrate_page()
2678 stable_node->kpfn = page_to_pfn(newpage); in ksm_migrate_page()
Dpage_owner.c239 void __copy_page_owner(struct page *oldpage, struct page *newpage) in __copy_page_owner() argument
249 new_ext = page_ext_get(newpage); in __copy_page_owner()
Dsecretmem.c153 struct page *newpage, struct page *page, in secretmem_migratepage() argument
Dmemcontrol.c7102 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) in mem_cgroup_migrate() argument
7109 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in mem_cgroup_migrate()
7110 VM_BUG_ON_PAGE(PageAnon(oldpage) != PageAnon(newpage), newpage); in mem_cgroup_migrate()
7111 VM_BUG_ON_PAGE(PageTransHuge(oldpage) != PageTransHuge(newpage), in mem_cgroup_migrate()
7112 newpage); in mem_cgroup_migrate()
7118 if (page_memcg(newpage)) in mem_cgroup_migrate()
7127 nr_pages = thp_nr_pages(newpage); in mem_cgroup_migrate()
7136 commit_charge(newpage, memcg); in mem_cgroup_migrate()
7139 mem_cgroup_charge_statistics(memcg, newpage, nr_pages); in mem_cgroup_migrate()
7140 memcg_check_events(memcg, newpage); in mem_cgroup_migrate()
Dhugetlb.c6335 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument
6339 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state()
6340 set_page_owner_migrate_reason(newpage, reason); in move_hugetlb_state()
6352 if (HPageTemporary(newpage)) { in move_hugetlb_state()
6354 int new_nid = page_to_nid(newpage); in move_hugetlb_state()
6357 ClearHPageTemporary(newpage); in move_hugetlb_state()