Lines Matching refs:subreq
455 struct nfs_page *subreq = destroy_list; in nfs_destroy_unlinked_subrequests() local
457 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
458 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
461 nfs_page_set_headlock(subreq); in nfs_destroy_unlinked_subrequests()
462 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
465 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
466 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
468 clear_bit(PG_REMOVE, &subreq->wb_flags); in nfs_destroy_unlinked_subrequests()
471 if (!kref_read(&subreq->wb_kref)) { in nfs_destroy_unlinked_subrequests()
473 if (test_and_clear_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
474 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
475 nfs_free_request(subreq); in nfs_destroy_unlinked_subrequests()
477 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
480 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
484 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
485 nfs_release_request(subreq); in nfs_destroy_unlinked_subrequests()
491 nfs_unlock_and_release_request(subreq); in nfs_destroy_unlinked_subrequests()
509 struct nfs_page *subreq; in nfs_join_page_group() local
516 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
517 subreq = subreq->wb_this_page) { in nfs_join_page_group()
519 if (pgbase > subreq->wb_pgbase) { in nfs_join_page_group()
520 off -= pgbase - subreq->wb_pgbase; in nfs_join_page_group()
521 bytes += pgbase - subreq->wb_pgbase; in nfs_join_page_group()
522 pgbase = subreq->wb_pgbase; in nfs_join_page_group()
524 bytes = max(subreq->wb_pgbase + subreq->wb_bytes in nfs_join_page_group()
535 subreq = head; in nfs_join_page_group()
537 nfs_clear_request_commit(cinfo, subreq); in nfs_join_page_group()
538 subreq = subreq->wb_this_page; in nfs_join_page_group()
539 } while (subreq != head); in nfs_join_page_group()