Lines Matching refs:new
463 int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask) in replace_page_cache_page() argument
468 VM_BUG_ON_PAGE(!PageLocked(new), new); in replace_page_cache_page()
469 VM_BUG_ON_PAGE(new->mapping, new); in replace_page_cache_page()
479 page_cache_get(new); in replace_page_cache_page()
480 new->mapping = mapping; in replace_page_cache_page()
481 new->index = offset; in replace_page_cache_page()
485 error = radix_tree_insert(&mapping->page_tree, offset, new); in replace_page_cache_page()
488 __inc_zone_page_state(new, NR_FILE_PAGES); in replace_page_cache_page()
489 if (PageSwapBacked(new)) in replace_page_cache_page()
490 __inc_zone_page_state(new, NR_SHMEM); in replace_page_cache_page()
492 mem_cgroup_migrate(old, new, true); in replace_page_cache_page()