Lines Matching refs:subreq

454 		struct nfs_page *subreq = destroy_list;  in nfs_destroy_unlinked_subrequests()  local
456 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
457 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
460 nfs_page_set_headlock(subreq); in nfs_destroy_unlinked_subrequests()
461 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
464 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
465 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
467 clear_bit(PG_REMOVE, &subreq->wb_flags); in nfs_destroy_unlinked_subrequests()
470 if (!kref_read(&subreq->wb_kref)) { in nfs_destroy_unlinked_subrequests()
472 if (test_and_clear_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
473 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
474 nfs_free_request(subreq); in nfs_destroy_unlinked_subrequests()
476 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
479 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
483 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
484 nfs_release_request(subreq); in nfs_destroy_unlinked_subrequests()
490 nfs_unlock_and_release_request(subreq); in nfs_destroy_unlinked_subrequests()
508 struct nfs_page *subreq; in nfs_join_page_group() local
515 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
516 subreq = subreq->wb_this_page) { in nfs_join_page_group()
518 if (pgbase > subreq->wb_pgbase) { in nfs_join_page_group()
519 off -= pgbase - subreq->wb_pgbase; in nfs_join_page_group()
520 bytes += pgbase - subreq->wb_pgbase; in nfs_join_page_group()
521 pgbase = subreq->wb_pgbase; in nfs_join_page_group()
523 bytes = max(subreq->wb_pgbase + subreq->wb_bytes in nfs_join_page_group()
534 subreq = head; in nfs_join_page_group()
536 nfs_clear_request_commit(subreq); in nfs_join_page_group()
537 subreq = subreq->wb_this_page; in nfs_join_page_group()
538 } while (subreq != head); in nfs_join_page_group()