Home
last modified time | relevance | path

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

/linux-6.6.21/mm/
Dmigrate_device.c690 struct page *newpage = migrate_pfn_to_page(dst_pfns[i]); in __migrate_device_pages() local
695 if (!newpage) { in __migrate_device_pages()
722 migrate_vma_insert_page(migrate, addr, newpage, in __migrate_device_pages()
729 if (is_device_private_page(newpage) || in __migrate_device_pages()
730 is_device_coherent_page(newpage)) { in __migrate_device_pages()
748 } else if (is_zone_device_page(newpage)) { in __migrate_device_pages()
757 r = migrate_folio_extra(mapping, page_folio(newpage), in __migrate_device_pages()
761 r = migrate_folio(mapping, page_folio(newpage), in __migrate_device_pages()
818 struct page *newpage = migrate_pfn_to_page(dst_pfns[i]); in migrate_device_finalize() local
822 if (newpage) { in migrate_device_finalize()
[all …]
Dballoon_compaction.c232 static int balloon_page_migrate(struct page *newpage, struct page *page, in balloon_page_migrate() argument
246 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in balloon_page_migrate()
248 return balloon->migratepage(balloon, newpage, page, mode); in balloon_page_migrate()
Dzsmalloc.c1756 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1765 pages[idx] = newpage; in replace_sub_page()
1772 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page()
1774 newpage->index = oldpage->index; in replace_sub_page()
1775 __SetPageMovable(newpage, &zsmalloc_mops); in replace_sub_page()
1798 static int zs_page_migrate(struct page *newpage, struct page *page, in zs_page_migrate() argument
1841 d_addr = kmap_atomic(newpage); in zs_page_migrate()
1851 new_obj = (unsigned long)location_to_obj(newpage, in zs_page_migrate()
1858 replace_sub_page(class, zspage, newpage, page); in zs_page_migrate()
1867 get_page(newpage); in zs_page_migrate()
[all …]
Dz3fold.c1285 static int z3fold_page_migrate(struct page *newpage, struct page *page, in z3fold_page_migrate() argument
1293 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in z3fold_page_migrate()
1309 new_zhdr = page_address(newpage); in z3fold_page_migrate()
1311 newpage->private = page->private; in z3fold_page_migrate()
1323 get_page(newpage); in z3fold_page_migrate()
1331 set_bit(NEEDS_COMPACTING, &newpage->private); in z3fold_page_migrate()
1333 __SetPageMovable(newpage, &z3fold_mops); in z3fold_page_migrate()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dcmm.c501 struct page *newpage, struct page *page, in cmm_migratepage() argument
514 if (plpar_page_set_loaned(newpage)) { in cmm_migratepage()
521 get_page(newpage); in cmm_migratepage()
528 if (page_zone(page) != page_zone(newpage)) { in cmm_migratepage()
530 adjust_managed_page_count(newpage, -1); in cmm_migratepage()
534 balloon_page_insert(b_dev_info, newpage); in cmm_migratepage()
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dpage_migration.rst144 | ``struct page *newpage, struct page *oldpage, enum migrate_mode);``
147 的内容移动到新页,并设置struct page newpage的字段。请记住,如果你成功迁移了旧页
/linux-6.6.21/drivers/virtio/
Dvirtio_balloon.c751 struct page *newpage, struct page *page, enum migrate_mode mode) in virtballoon_migratepage() argument
768 get_page(newpage); /* balloon reference */ in virtballoon_migratepage()
776 page_zone(page) != page_zone(newpage)) { in virtballoon_migratepage()
778 adjust_managed_page_count(newpage, -1); in virtballoon_migratepage()
783 balloon_page_insert(vb_dev_info, newpage); in virtballoon_migratepage()
788 set_page_pfns(vb, vb->pfns, newpage); in virtballoon_migratepage()
/linux-6.6.21/include/linux/
Dballoon_compaction.h58 int (*migratepage)(struct balloon_dev_info *, struct page *newpage,
/linux-6.6.21/drivers/misc/
Dvmw_balloon.c1746 struct page *newpage, struct page *page, in vmballoon_migratepage() argument
1797 vmballoon_add_page(b, 0, newpage); in vmballoon_migratepage()
1802 status = vmballoon_status_page(b, 0, &newpage); in vmballoon_migratepage()
1820 get_page(newpage); in vmballoon_migratepage()
1833 balloon_page_insert(&b->b_dev_info, newpage); in vmballoon_migratepage()
/linux-6.6.21/fs/erofs/
Dzdata.c578 struct page *newpage = NULL; in z_erofs_bind_cache() local
599 newpage = erofs_allocpage(&fe->pagepool, gfp); in z_erofs_bind_cache()
600 if (!newpage) in z_erofs_bind_cache()
602 set_page_private(newpage, Z_EROFS_PREALLOCATED_PAGE); in z_erofs_bind_cache()
603 t = (void *)((unsigned long)newpage | 1); in z_erofs_bind_cache()
611 else if (newpage) in z_erofs_bind_cache()
612 erofs_pagepool_add(&fe->pagepool, newpage); in z_erofs_bind_cache()
/linux-6.6.21/fs/jfs/
Djfs_logmgr.h329 } newpage; member
Djfs_xtree.c1515 int newpage = 0; in xtUpdate() local
1747 newpage = 1; in xtUpdate()
1777 if (newpage) { in xtUpdate()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c4031 struct page *newpage; in adap_config_hma() local
4086 newpage = alloc_pages_node(node, __GFP_NOWARN | GFP_KERNEL | in adap_config_hma()
4088 if (!newpage) { in adap_config_hma()
4094 sg_set_page(iter, newpage, page_size << page_order, 0); in adap_config_hma()
4113 newpage = sg_page(iter); in adap_config_hma()
/linux-6.6.21/fs/nfs/
Dnfs4proc.c5820 struct page *newpage, **spages; in nfs4_buf_to_pages_noslab() local
5827 newpage = alloc_page(GFP_KERNEL); in nfs4_buf_to_pages_noslab()
5829 if (newpage == NULL) in nfs4_buf_to_pages_noslab()
5831 memcpy(page_address(newpage), buf, len); in nfs4_buf_to_pages_noslab()
5834 *pages++ = newpage; in nfs4_buf_to_pages_noslab()