Lines Matching defs:backpage
80 struct page *backpage = monitor->back_page, *backpage2;
85 backpage->index, backpage->flags);
88 if (backpage->mapping != bmapping) {
93 backpage2 = find_get_page(bmapping, backpage->index);
99 if (backpage != backpage2) {
110 add_page_wait_queue(backpage, &monitor->monitor);
112 if (trylock_page(backpage)) {
114 if (PageError(backpage))
117 if (PageUptodate(backpage))
121 ret = bmapping->a_ops->readpage(NULL, backpage);
129 if (trylock_page(backpage)) {
130 _debug("jumpstart %p {%lx}", backpage, backpage->flags);
131 unlock_page(backpage);
139 unlock_page(backpage);
235 struct page *newpage, *backpage;
257 backpage = find_get_page(bmapping, netpage->index);
258 if (backpage)
280 backpage = newpage;
284 ret = bmapping->a_ops->readpage(NULL, backpage);
294 get_page(backpage);
295 monitor->back_page = backpage;
296 monitor->monitor.private = backpage;
297 add_page_wait_queue(backpage, &monitor->monitor);
303 if (trylock_page(backpage)) {
304 _debug("jumpstart %p {%lx}", backpage, backpage->flags);
305 unlock_page(backpage);
319 if (PageError(backpage))
322 if (PageUptodate(backpage))
325 if (!trylock_page(backpage))
327 _debug("read %p {%lx}", backpage, backpage->flags);
337 copy_highpage(netpage, backpage);
346 if (backpage)
347 put_page(backpage);
471 struct page *newpage = NULL, *netpage, *_n, *backpage = NULL;
493 backpage = find_get_page(bmapping, netpage->index);
494 if (backpage)
517 backpage = newpage;
521 ret = bmapping->a_ops->readpage(NULL, backpage);
534 put_page(backpage);
535 backpage = NULL;
548 get_page(backpage);
549 monitor->back_page = backpage;
550 monitor->monitor.private = backpage;
551 add_page_wait_queue(backpage, &monitor->monitor);
557 if (trylock_page(backpage)) {
558 _debug("2unlock %p {%lx}", backpage, backpage->flags);
559 unlock_page(backpage);
562 put_page(backpage);
563 backpage = NULL;
572 _debug("- present %p", backpage);
574 if (PageError(backpage))
577 if (PageUptodate(backpage))
580 _debug("- not ready %p{%lx}", backpage, backpage->flags);
582 if (!trylock_page(backpage))
585 if (PageError(backpage)) {
586 _debug("error %lx", backpage->flags);
587 unlock_page(backpage);
591 if (PageUptodate(backpage))
601 _debug("uptodate %lx", backpage->flags);
602 unlock_page(backpage);
610 put_page(backpage);
611 backpage = NULL;
620 copy_highpage(netpage, backpage);
622 put_page(backpage);
623 backpage = NULL;
645 if (backpage)
646 put_page(backpage);