Home
last modified time | relevance | path

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

12

/linux/mm/
A Dmigrate.c524 get_page(newpage); in migrate_huge_page_move_mapping()
883 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage); in move_to_new_page()
1088 put_page(newpage); in __unmap_and_move()
1201 if (!newpage) in unmap_and_move()
2082 return newpage; in alloc_misplaced_dst_page()
2093 if (!newpage) in alloc_misplaced_dst_page_thp()
2099 return newpage; in alloc_misplaced_dst_page_thp()
2858 if (!newpage) { in migrate_vma_pages()
2938 if (newpage) { in migrate_vma_finalize()
2946 if (newpage) { in migrate_vma_finalize()
[all …]
A Dfolio-compat.c55 struct page *newpage, struct page *page, int extra_count) in migrate_page_move_mapping() argument
57 return folio_migrate_mapping(mapping, page_folio(newpage), in migrate_page_move_mapping()
62 void migrate_page_states(struct page *newpage, struct page *page) in migrate_page_states() argument
64 folio_migrate_flags(page_folio(newpage), page_folio(page)); in migrate_page_states()
68 void migrate_page_copy(struct page *newpage, struct page *page) in migrate_page_copy() argument
70 folio_migrate_copy(page_folio(newpage), page_folio(page)); in migrate_page_copy()
A 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()
A Dzsmalloc.c1843 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1852 pages[idx] = newpage; in replace_sub_page()
1861 newpage->index = oldpage->index; in replace_sub_page()
1862 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
1981 d_addr = kmap_atomic(newpage); in zs_page_migrate()
1994 new_obj = (unsigned long)location_to_obj(newpage, in zs_page_migrate()
2001 replace_sub_page(class, zspage, newpage, page); in zs_page_migrate()
2002 get_page(newpage); in zs_page_migrate()
2021 if (page_zone(newpage) != page_zone(page)) { in zs_page_migrate()
2023 inc_zone_page_state(newpage, NR_ZSPAGES); in zs_page_migrate()
[all …]
A 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()
A Dshmem.c1655 if (!newpage) in shmem_replace_page()
1658 get_page(newpage); in shmem_replace_page()
1660 flush_dcache_page(newpage); in shmem_replace_page()
1662 __SetPageLocked(newpage); in shmem_replace_page()
1663 __SetPageSwapBacked(newpage); in shmem_replace_page()
1664 SetPageUptodate(newpage); in shmem_replace_page()
1666 SetPageSwapCache(newpage); in shmem_replace_page()
1676 new = page_folio(newpage); in shmem_replace_page()
1689 oldpage = newpage; in shmem_replace_page()
1691 lru_cache_add(newpage); in shmem_replace_page()
[all …]
A Dsecretmem.c142 struct page *newpage, struct page *page, in secretmem_migratepage() argument
A Dhugetlb.c6789 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument
6793 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state()
6794 set_page_owner_migrate_reason(newpage, reason); in move_hugetlb_state()
6806 if (HPageTemporary(newpage)) { in move_hugetlb_state()
6808 int new_nid = page_to_nid(newpage); in move_hugetlb_state()
6811 ClearHPageTemporary(newpage); in move_hugetlb_state()
/linux/include/linux/
A Dmigrate.h29 struct page *newpage, struct page *page,
37 extern void migrate_page_states(struct page *newpage, struct page *page);
38 extern void migrate_page_copy(struct page *newpage, struct page *page);
40 struct page *newpage, struct page *page);
42 struct page *newpage, struct page *page, int extra_count);
62 static inline void migrate_page_states(struct page *newpage, struct page *page) in migrate_page_states() argument
66 static inline void migrate_page_copy(struct page *newpage, in migrate_page_copy() argument
70 struct page *newpage, struct page *page) in migrate_huge_page_move_mapping() argument
A Dballoon_compaction.h58 int (*migratepage)(struct balloon_dev_info *, struct page *newpage,
87 struct page *newpage,
168 static inline int balloon_page_migrate(struct page *newpage, in balloon_page_migrate() argument
A Diomap.h231 int iomap_migrate_page(struct address_space *mapping, struct page *newpage,
A Dhugetlb.h173 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason);
386 struct page *newpage, int reason) in move_hugetlb_state() argument
/linux/fs/cachefiles/
A Drdwr.c254 newpage = NULL; in cachefiles_read_backing_file_one()
261 if (!newpage) { in cachefiles_read_backing_file_one()
263 if (!newpage) in cachefiles_read_backing_file_one()
281 newpage = NULL; in cachefiles_read_backing_file_one()
314 if (newpage) { in cachefiles_read_backing_file_one()
316 newpage = NULL; in cachefiles_read_backing_file_one()
368 put_page(newpage); in cachefiles_read_backing_file_one()
497 if (!newpage) { in cachefiles_read_backing_file()
499 if (!newpage) in cachefiles_read_backing_file()
518 newpage = NULL; in cachefiles_read_backing_file()
[all …]
/linux/arch/powerpc/platforms/pseries/
A Dcmm.c519 struct page *newpage, struct page *page, in cmm_migratepage() argument
532 if (plpar_page_set_loaned(newpage)) { in cmm_migratepage()
539 get_page(newpage); in cmm_migratepage()
546 if (page_zone(page) != page_zone(newpage)) { in cmm_migratepage()
548 adjust_managed_page_count(newpage, -1); in cmm_migratepage()
552 balloon_page_insert(b_dev_info, newpage); in cmm_migratepage()
/linux/fs/erofs/
A Dzdata.c249 struct page *newpage = NULL; in preload_compressed_pages() local
264 newpage = erofs_allocpage(pagepool, gfp); in preload_compressed_pages()
265 if (!newpage) in preload_compressed_pages()
267 set_page_private(newpage, in preload_compressed_pages()
269 t = tag_compressed_page_justfound(newpage); in preload_compressed_pages()
281 else if (newpage) in preload_compressed_pages()
282 erofs_pagepool_add(pagepool, newpage); in preload_compressed_pages()
723 struct page *const newpage = in z_erofs_do_read_page() local
726 set_page_private(newpage, Z_EROFS_SHORTLIVED_PAGE); in z_erofs_do_read_page()
727 err = z_erofs_attach_page(clt, newpage, in z_erofs_do_read_page()
/linux/drivers/virtio/
A Dvirtio_balloon.c754 struct page *newpage, struct page *page, enum migrate_mode mode) in virtballoon_migratepage() argument
771 get_page(newpage); /* balloon reference */ in virtballoon_migratepage()
779 page_zone(page) != page_zone(newpage)) { in virtballoon_migratepage()
781 adjust_managed_page_count(newpage, -1); in virtballoon_migratepage()
786 balloon_page_insert(vb_dev_info, newpage); in virtballoon_migratepage()
791 set_page_pfns(vb, vb->pfns, newpage); in virtballoon_migratepage()
/linux/fs/fuse/
A Ddev.c799 struct page *newpage; in fuse_try_move_page() local
825 newpage = buf->page; in fuse_try_move_page()
827 if (!PageUptodate(newpage)) in fuse_try_move_page()
828 SetPageUptodate(newpage); in fuse_try_move_page()
830 ClearPageMappedToDisk(newpage); in fuse_try_move_page()
850 get_page(newpage); in fuse_try_move_page()
853 lru_cache_add(newpage); in fuse_try_move_page()
866 *pagep = newpage; in fuse_try_move_page()
870 unlock_page(newpage); in fuse_try_move_page()
871 put_page(newpage); in fuse_try_move_page()
[all …]
/linux/drivers/misc/
A Dvmw_balloon.c1762 struct page *newpage, struct page *page, in vmballoon_migratepage() argument
1813 vmballoon_add_page(b, 0, newpage); in vmballoon_migratepage()
1818 status = vmballoon_status_page(b, 0, &newpage); in vmballoon_migratepage()
1836 get_page(newpage); in vmballoon_migratepage()
1849 balloon_page_insert(&b->b_dev_info, newpage); in vmballoon_migratepage()
/linux/fs/ubifs/
A Dfile.c1465 struct page *newpage, struct page *page, enum migrate_mode mode) in ubifs_migrate_page() argument
1469 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in ubifs_migrate_page()
1475 SetPagePrivate(newpage); in ubifs_migrate_page()
1479 migrate_page_copy(newpage, page); in ubifs_migrate_page()
1481 migrate_page_states(newpage, page); in ubifs_migrate_page()
/linux/fs/hugetlbfs/
A Dinode.c960 struct page *newpage, struct page *page, in hugetlbfs_migrate_page() argument
965 rc = migrate_huge_page_move_mapping(mapping, newpage, page); in hugetlbfs_migrate_page()
970 hugetlb_set_page_subpool(newpage, hugetlb_page_subpool(page)); in hugetlbfs_migrate_page()
975 migrate_page_copy(newpage, page); in hugetlbfs_migrate_page()
977 migrate_page_states(newpage, page); in hugetlbfs_migrate_page()
/linux/fs/iomap/
A Dbuffered-io.c501 iomap_migrate_page(struct address_space *mapping, struct page *newpage, in iomap_migrate_page() argument
506 ret = migrate_page_move_mapping(mapping, newpage, page, 0); in iomap_migrate_page()
511 attach_page_private(newpage, detach_page_private(page)); in iomap_migrate_page()
514 migrate_page_copy(newpage, page); in iomap_migrate_page()
516 migrate_page_states(newpage, page); in iomap_migrate_page()
/linux/fs/jfs/
A Djfs_logmgr.h329 } newpage; member
/linux/fs/f2fs/
A Ddata.c3914 struct page *newpage, struct page *page, enum migrate_mode mode) in f2fs_migrate_page() argument
3932 rc = migrate_page_move_mapping(mapping, newpage, in f2fs_migrate_page()
3945 cur->page = newpage; in f2fs_migrate_page()
3950 get_page(newpage); in f2fs_migrate_page()
3954 set_page_private(newpage, 0); in f2fs_migrate_page()
3956 set_page_private(newpage, page_private(page)); in f2fs_migrate_page()
3957 SetPagePrivate(newpage); in f2fs_migrate_page()
3958 get_page(newpage); in f2fs_migrate_page()
3966 migrate_page_copy(newpage, page); in f2fs_migrate_page()
3968 migrate_page_states(newpage, page); in f2fs_migrate_page()
/linux/Documentation/vm/
A Dpage_migration.rst185 | ``struct page *newpage, struct page *oldpage, enum migrate_mode);``
190 and set up fields of struct page newpage. Keep in mind that you should
/linux/fs/nfs/
A Dwrite.c2114 int nfs_migrate_page(struct address_space *mapping, struct page *newpage, in nfs_migrate_page() argument
2131 return migrate_page(mapping, newpage, page, mode); in nfs_migrate_page()

Completed in 97 milliseconds

12