Lines Matching refs:sreq
283 static struct nfs_netfs_io_data *nfs_netfs_alloc(struct netfs_io_subrequest *sreq) in nfs_netfs_alloc() argument
290 netfs->sreq = sreq; in nfs_netfs_alloc()
295 static bool nfs_netfs_clamp_length(struct netfs_io_subrequest *sreq) in nfs_netfs_clamp_length() argument
297 size_t rsize = NFS_SB(sreq->rreq->inode->i_sb)->rsize; in nfs_netfs_clamp_length()
299 sreq->len = min(sreq->len, rsize); in nfs_netfs_clamp_length()
303 static void nfs_netfs_issue_read(struct netfs_io_subrequest *sreq) in nfs_netfs_issue_read() argument
307 struct inode *inode = sreq->rreq->inode; in nfs_netfs_issue_read()
308 struct nfs_open_context *ctx = sreq->rreq->netfs_priv; in nfs_netfs_issue_read()
311 pgoff_t start = (sreq->start + sreq->transferred) >> PAGE_SHIFT; in nfs_netfs_issue_read()
312 pgoff_t last = ((sreq->start + sreq->len - in nfs_netfs_issue_read()
313 sreq->transferred - 1) >> PAGE_SHIFT); in nfs_netfs_issue_read()
314 XA_STATE(xas, &sreq->rreq->mapping->i_pages, start); in nfs_netfs_issue_read()
319 netfs = nfs_netfs_alloc(sreq); in nfs_netfs_issue_read()
321 return netfs_subreq_terminated(sreq, -ENOMEM, false); in nfs_netfs_issue_read()
369 struct netfs_io_subrequest *sreq; in nfs_netfs_read_completion() local
374 sreq = netfs->sreq; in nfs_netfs_read_completion()
376 __set_bit(NETFS_SREQ_CLEAR_TAIL, &sreq->flags); in nfs_netfs_read_completion()