Lines Matching refs:subreq
452 struct nfs_page *subreq = destroy_list; in nfs_destroy_unlinked_subrequests() local
454 destroy_list = (subreq->wb_this_page == old_head) ? in nfs_destroy_unlinked_subrequests()
455 NULL : subreq->wb_this_page; in nfs_destroy_unlinked_subrequests()
458 nfs_page_set_headlock(subreq); in nfs_destroy_unlinked_subrequests()
459 WARN_ON_ONCE(old_head != subreq->wb_head); in nfs_destroy_unlinked_subrequests()
462 subreq->wb_this_page = subreq; in nfs_destroy_unlinked_subrequests()
463 subreq->wb_head = subreq; in nfs_destroy_unlinked_subrequests()
465 clear_bit(PG_REMOVE, &subreq->wb_flags); in nfs_destroy_unlinked_subrequests()
468 if (!kref_read(&subreq->wb_kref)) { in nfs_destroy_unlinked_subrequests()
470 if (test_and_clear_bit(PG_TEARDOWN, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
471 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
472 nfs_free_request(subreq); in nfs_destroy_unlinked_subrequests()
474 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
477 nfs_page_clear_headlock(subreq); in nfs_destroy_unlinked_subrequests()
481 if (test_and_clear_bit(PG_INODE_REF, &subreq->wb_flags)) { in nfs_destroy_unlinked_subrequests()
482 nfs_release_request(subreq); in nfs_destroy_unlinked_subrequests()
488 nfs_unlock_and_release_request(subreq); in nfs_destroy_unlinked_subrequests()
506 struct nfs_page *subreq; in nfs_join_page_group() local
513 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
514 subreq = subreq->wb_this_page) { in nfs_join_page_group()
516 if (pgbase > subreq->wb_pgbase) { in nfs_join_page_group()
517 off -= pgbase - subreq->wb_pgbase; in nfs_join_page_group()
518 bytes += pgbase - subreq->wb_pgbase; in nfs_join_page_group()
519 pgbase = subreq->wb_pgbase; in nfs_join_page_group()
521 bytes = max(subreq->wb_pgbase + subreq->wb_bytes in nfs_join_page_group()
532 subreq = head; in nfs_join_page_group()
534 nfs_clear_request_commit(subreq); in nfs_join_page_group()
535 subreq = subreq->wb_this_page; in nfs_join_page_group()
536 } while (subreq != head); in nfs_join_page_group()