Lines Matching refs:old_page
2149 pte_t orig_pte, struct page *old_page) in wp_page_copy() argument
2170 cow_user_page(new_page, old_page, address, vma); in wp_page_copy()
2185 if (old_page) { in wp_page_copy()
2186 if (!PageAnon(old_page)) { in wp_page_copy()
2213 if (old_page) { in wp_page_copy()
2236 page_remove_rmap(old_page); in wp_page_copy()
2240 new_page = old_page; in wp_page_copy()
2251 if (old_page) { in wp_page_copy()
2257 lock_page(old_page); /* LRU manipulation */ in wp_page_copy()
2258 munlock_vma_page(old_page); in wp_page_copy()
2259 unlock_page(old_page); in wp_page_copy()
2261 page_cache_release(old_page); in wp_page_copy()
2267 if (old_page) in wp_page_copy()
2268 page_cache_release(old_page); in wp_page_copy()
2311 struct page *old_page) in wp_page_shared() argument
2316 page_cache_get(old_page); in wp_page_shared()
2327 tmp = do_page_mkwrite(vma, old_page, address); in wp_page_shared()
2330 page_cache_release(old_page); in wp_page_shared()
2342 unlock_page(old_page); in wp_page_shared()
2344 page_cache_release(old_page); in wp_page_shared()
2351 orig_pte, old_page, page_mkwrite, 1); in wp_page_shared()
2377 struct page *old_page; in do_wp_page() local
2379 old_page = vm_normal_page(vma, address, orig_pte); in do_wp_page()
2380 if (!old_page) { in do_wp_page()
2395 orig_pte, old_page); in do_wp_page()
2402 if (PageAnon(old_page) && !PageKsm(old_page)) { in do_wp_page()
2403 if (!trylock_page(old_page)) { in do_wp_page()
2404 page_cache_get(old_page); in do_wp_page()
2406 lock_page(old_page); in do_wp_page()
2410 unlock_page(old_page); in do_wp_page()
2412 page_cache_release(old_page); in do_wp_page()
2415 page_cache_release(old_page); in do_wp_page()
2417 if (reuse_swap_page(old_page)) { in do_wp_page()
2423 page_move_anon_rmap(old_page, vma, address); in do_wp_page()
2424 unlock_page(old_page); in do_wp_page()
2426 orig_pte, old_page, 0, 0); in do_wp_page()
2428 unlock_page(old_page); in do_wp_page()
2432 ptl, orig_pte, old_page); in do_wp_page()
2438 page_cache_get(old_page); in do_wp_page()
2442 orig_pte, old_page); in do_wp_page()