Lines Matching refs:subreq
453 struct nfs_page *subreq = destroy_list; in nfs_destroy_unlinked_subrequests() local
455 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
456 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
459 nfs_page_set_headlock(subreq); in nfs_destroy_unlinked_subrequests()
460 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
463 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
464 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
466 clear_bit(PG_REMOVE, &subreq->wb_flags); in nfs_destroy_unlinked_subrequests()
469 if (!kref_read(&subreq->wb_kref)) { in nfs_destroy_unlinked_subrequests()
471 if (test_and_clear_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
472 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
473 nfs_free_request(subreq); in nfs_destroy_unlinked_subrequests()
475 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
478 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
482 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
483 nfs_release_request(subreq); in nfs_destroy_unlinked_subrequests()
489 nfs_unlock_and_release_request(subreq); in nfs_destroy_unlinked_subrequests()
507 struct nfs_page *subreq; in nfs_join_page_group() local
514 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
515 subreq = subreq->wb_this_page) { in nfs_join_page_group()
517 if (pgbase > subreq->wb_pgbase) { in nfs_join_page_group()
518 off -= pgbase - subreq->wb_pgbase; in nfs_join_page_group()
519 bytes += pgbase - subreq->wb_pgbase; in nfs_join_page_group()
520 pgbase = subreq->wb_pgbase; in nfs_join_page_group()
522 bytes = max(subreq->wb_pgbase + subreq->wb_bytes in nfs_join_page_group()
533 subreq = head; in nfs_join_page_group()
535 nfs_clear_request_commit(subreq); in nfs_join_page_group()
536 subreq = subreq->wb_this_page; in nfs_join_page_group()
537 } while (subreq != head); in nfs_join_page_group()