Lines Matching refs:backpage
77 struct page *backpage = monitor->back_page, *backpage2; in cachefiles_read_reissue() local
82 backpage->index, backpage->flags); in cachefiles_read_reissue()
85 if (backpage->mapping != bmapping) { in cachefiles_read_reissue()
90 backpage2 = find_get_page(bmapping, backpage->index); in cachefiles_read_reissue()
96 if (backpage != backpage2) { in cachefiles_read_reissue()
107 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_reissue()
109 if (trylock_page(backpage)) { in cachefiles_read_reissue()
111 if (PageError(backpage)) in cachefiles_read_reissue()
114 if (PageUptodate(backpage)) in cachefiles_read_reissue()
118 ret = bmapping->a_ops->readpage(NULL, backpage); in cachefiles_read_reissue()
126 if (trylock_page(backpage)) { in cachefiles_read_reissue()
127 _debug("jumpstart %p {%lx}", backpage, backpage->flags); in cachefiles_read_reissue()
128 unlock_page(backpage); in cachefiles_read_reissue()
136 unlock_page(backpage); in cachefiles_read_reissue()
232 struct page *newpage, *backpage; in cachefiles_read_backing_file_one() local
256 backpage = find_get_page(bmapping, netpage->index); in cachefiles_read_backing_file_one()
257 if (backpage) in cachefiles_read_backing_file_one()
279 backpage = newpage; in cachefiles_read_backing_file_one()
282 page_cache_get(backpage); in cachefiles_read_backing_file_one()
283 pagevec_add(pagevec, backpage); in cachefiles_read_backing_file_one()
287 ret = bmapping->a_ops->readpage(NULL, backpage); in cachefiles_read_backing_file_one()
297 page_cache_get(backpage); in cachefiles_read_backing_file_one()
298 monitor->back_page = backpage; in cachefiles_read_backing_file_one()
299 monitor->monitor.private = backpage; in cachefiles_read_backing_file_one()
300 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_backing_file_one()
306 if (trylock_page(backpage)) { in cachefiles_read_backing_file_one()
307 _debug("jumpstart %p {%lx}", backpage, backpage->flags); in cachefiles_read_backing_file_one()
308 unlock_page(backpage); in cachefiles_read_backing_file_one()
322 if (PageError(backpage)) in cachefiles_read_backing_file_one()
325 if (PageUptodate(backpage)) in cachefiles_read_backing_file_one()
328 if (!trylock_page(backpage)) in cachefiles_read_backing_file_one()
330 _debug("read %p {%lx}", backpage, backpage->flags); in cachefiles_read_backing_file_one()
341 copy_highpage(netpage, backpage); in cachefiles_read_backing_file_one()
349 if (backpage) in cachefiles_read_backing_file_one()
350 page_cache_release(backpage); in cachefiles_read_backing_file_one()
474 struct page *newpage = NULL, *netpage, *_n, *backpage = NULL; in cachefiles_read_backing_file() local
498 backpage = find_get_page(bmapping, netpage->index); in cachefiles_read_backing_file()
499 if (backpage) in cachefiles_read_backing_file()
521 backpage = newpage; in cachefiles_read_backing_file()
524 page_cache_get(backpage); in cachefiles_read_backing_file()
525 if (!pagevec_add(&lru_pvec, backpage)) in cachefiles_read_backing_file()
529 ret = bmapping->a_ops->readpage(NULL, backpage); in cachefiles_read_backing_file()
556 page_cache_get(backpage); in cachefiles_read_backing_file()
557 monitor->back_page = backpage; in cachefiles_read_backing_file()
558 monitor->monitor.private = backpage; in cachefiles_read_backing_file()
559 add_page_wait_queue(backpage, &monitor->monitor); in cachefiles_read_backing_file()
565 if (trylock_page(backpage)) { in cachefiles_read_backing_file()
566 _debug("2unlock %p {%lx}", backpage, backpage->flags); in cachefiles_read_backing_file()
567 unlock_page(backpage); in cachefiles_read_backing_file()
570 page_cache_release(backpage); in cachefiles_read_backing_file()
571 backpage = NULL; in cachefiles_read_backing_file()
580 _debug("- present %p", backpage); in cachefiles_read_backing_file()
582 if (PageError(backpage)) in cachefiles_read_backing_file()
585 if (PageUptodate(backpage)) in cachefiles_read_backing_file()
588 _debug("- not ready %p{%lx}", backpage, backpage->flags); in cachefiles_read_backing_file()
590 if (!trylock_page(backpage)) in cachefiles_read_backing_file()
593 if (PageError(backpage)) { in cachefiles_read_backing_file()
594 _debug("error %lx", backpage->flags); in cachefiles_read_backing_file()
595 unlock_page(backpage); in cachefiles_read_backing_file()
599 if (PageUptodate(backpage)) in cachefiles_read_backing_file()
609 _debug("uptodate %lx", backpage->flags); in cachefiles_read_backing_file()
610 unlock_page(backpage); in cachefiles_read_backing_file()
624 copy_highpage(netpage, backpage); in cachefiles_read_backing_file()
626 page_cache_release(backpage); in cachefiles_read_backing_file()
627 backpage = NULL; in cachefiles_read_backing_file()
654 if (backpage) in cachefiles_read_backing_file()
655 page_cache_release(backpage); in cachefiles_read_backing_file()