Lines Matching refs:rreq

186 static void ceph_netfs_expand_readahead(struct netfs_io_request *rreq)  in ceph_netfs_expand_readahead()  argument
188 struct inode *inode = rreq->inode; in ceph_netfs_expand_readahead()
192 loff_t end = rreq->start + rreq->len, new_end; in ceph_netfs_expand_readahead()
193 struct ceph_netfs_request_data *priv = rreq->netfs_priv; in ceph_netfs_expand_readahead()
217 new_end = min(round_up(end, lo->stripe_unit), rreq->i_size); in ceph_netfs_expand_readahead()
218 if (new_end > end && new_end <= rreq->start + max_len) in ceph_netfs_expand_readahead()
219 rreq->len = new_end - rreq->start; in ceph_netfs_expand_readahead()
222 div_u64_rem(rreq->start, lo->stripe_unit, &blockoff); in ceph_netfs_expand_readahead()
223 if (rreq->len + blockoff <= max_len) { in ceph_netfs_expand_readahead()
224 rreq->start -= blockoff; in ceph_netfs_expand_readahead()
225 rreq->len += blockoff; in ceph_netfs_expand_readahead()
231 struct inode *inode = subreq->rreq->inode; in ceph_netfs_clamp_length()
293 struct netfs_io_request *rreq = subreq->rreq; in ceph_netfs_issue_op_inline() local
294 struct inode *inode = rreq->inode; in ceph_netfs_issue_op_inline()
335 iov_iter_xarray(&iter, ITER_DEST, &rreq->mapping->i_pages, subreq->start, len); in ceph_netfs_issue_op_inline()
348 struct netfs_io_request *rreq = subreq->rreq; in ceph_netfs_issue_read() local
349 struct inode *inode = rreq->inode; in ceph_netfs_issue_read()
388 iov_iter_xarray(&iter, ITER_DEST, &rreq->mapping->i_pages, subreq->start, len); in ceph_netfs_issue_read()
435 static int ceph_init_request(struct netfs_io_request *rreq, struct file *file) in ceph_init_request() argument
437 struct inode *inode = rreq->inode; in ceph_init_request()
442 if (rreq->origin != NETFS_READAHEAD) in ceph_init_request()
458 rreq->netfs_priv = priv; in ceph_init_request()
484 rreq->netfs_priv = priv; in ceph_init_request()
493 static void ceph_netfs_free_request(struct netfs_io_request *rreq) in ceph_netfs_free_request() argument
495 struct ceph_netfs_request_data *priv = rreq->netfs_priv; in ceph_netfs_free_request()
501 ceph_put_cap_refs(ceph_inode(rreq->inode), priv->caps); in ceph_netfs_free_request()
503 rreq->netfs_priv = NULL; in ceph_netfs_free_request()