Lines Matching refs:subreq
201 nfs_page_group_lock_subreq(struct nfs_page *head, struct nfs_page *subreq) in nfs_page_group_lock_subreq() argument
205 if (!kref_get_unless_zero(&subreq->wb_kref)) in nfs_page_group_lock_subreq()
207 while (!nfs_lock_request(subreq)) { in nfs_page_group_lock_subreq()
209 ret = nfs_wait_on_request(subreq); in nfs_page_group_lock_subreq()
213 nfs_unroll_locks(head, subreq); in nfs_page_group_lock_subreq()
214 nfs_release_request(subreq); in nfs_page_group_lock_subreq()
230 struct nfs_page *subreq; in nfs_page_group_lock_subrequests() local
237 for (subreq = head->wb_this_page; subreq != head; in nfs_page_group_lock_subrequests()
238 subreq = subreq->wb_this_page) { in nfs_page_group_lock_subrequests()
239 ret = nfs_page_group_lock_subreq(head, subreq); in nfs_page_group_lock_subrequests()
1161 struct nfs_page *subreq; in __nfs_pageio_add_request() local
1166 subreq = req; in __nfs_pageio_add_request()
1167 subreq_size = subreq->wb_bytes; in __nfs_pageio_add_request()
1169 size = nfs_pageio_do_add_request(desc, subreq); in __nfs_pageio_add_request()
1172 if (subreq == req) in __nfs_pageio_add_request()
1178 subreq = req; in __nfs_pageio_add_request()
1181 if (WARN_ON_ONCE(subreq != req)) { in __nfs_pageio_add_request()
1183 nfs_pageio_cleanup_request(desc, subreq); in __nfs_pageio_add_request()
1184 subreq = req; in __nfs_pageio_add_request()
1199 subreq = nfs_create_subreq(req, req->wb_pgbase, in __nfs_pageio_add_request()
1201 if (IS_ERR(subreq)) in __nfs_pageio_add_request()
1209 desc->pg_error = PTR_ERR(subreq); in __nfs_pageio_add_request()