Home
last modified time | relevance | path

Searched refs:rreq (Results 1 – 23 of 23) sorted by relevance

/Linux-v6.1/fs/netfs/
Dio.c26 iov_iter_xarray(&iter, READ, &subreq->rreq->mapping->i_pages, in netfs_clear_unread()
44 static void netfs_read_from_cache(struct netfs_io_request *rreq, in netfs_read_from_cache() argument
48 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_read_from_cache()
52 iov_iter_xarray(&iter, READ, &rreq->mapping->i_pages, in netfs_read_from_cache()
63 static void netfs_fill_with_zeroes(struct netfs_io_request *rreq, in netfs_fill_with_zeroes() argument
87 static void netfs_read_from_server(struct netfs_io_request *rreq, in netfs_read_from_server() argument
91 rreq->netfs_ops->issue_read(subreq); in netfs_read_from_server()
97 static void netfs_rreq_completed(struct netfs_io_request *rreq, bool was_async) in netfs_rreq_completed() argument
99 trace_netfs_rreq(rreq, netfs_rreq_trace_done); in netfs_rreq_completed()
100 netfs_clear_subrequests(rreq, was_async); in netfs_rreq_completed()
[all …]
Dobjects.c22 struct netfs_io_request *rreq; in netfs_alloc_request() local
25 rreq = kzalloc(sizeof(struct netfs_io_request), GFP_KERNEL); in netfs_alloc_request()
26 if (!rreq) in netfs_alloc_request()
29 rreq->start = start; in netfs_alloc_request()
30 rreq->len = len; in netfs_alloc_request()
31 rreq->origin = origin; in netfs_alloc_request()
32 rreq->netfs_ops = ctx->ops; in netfs_alloc_request()
33 rreq->mapping = mapping; in netfs_alloc_request()
34 rreq->inode = inode; in netfs_alloc_request()
35 rreq->i_size = i_size_read(inode); in netfs_alloc_request()
[all …]
Dbuffered_read.c16 void netfs_rreq_unlock_folios(struct netfs_io_request *rreq) in netfs_rreq_unlock_folios() argument
20 pgoff_t start_page = rreq->start / PAGE_SIZE; in netfs_rreq_unlock_folios()
21 pgoff_t last_page = ((rreq->start + rreq->len) / PAGE_SIZE) - 1; in netfs_rreq_unlock_folios()
25 XA_STATE(xas, &rreq->mapping->i_pages, start_page); in netfs_rreq_unlock_folios()
27 if (test_bit(NETFS_RREQ_FAILED, &rreq->flags)) { in netfs_rreq_unlock_folios()
28 __clear_bit(NETFS_RREQ_COPY_TO_CACHE, &rreq->flags); in netfs_rreq_unlock_folios()
29 list_for_each_entry(subreq, &rreq->subrequests, rreq_link) { in netfs_rreq_unlock_folios()
40 subreq = list_first_entry(&rreq->subrequests, in netfs_rreq_unlock_folios()
44 trace_netfs_rreq(rreq, netfs_rreq_trace_unlock); in netfs_rreq_unlock_folios()
71 if (!list_is_last(&subreq->rreq_link, &rreq->subrequests)) { in netfs_rreq_unlock_folios()
[all …]
Dinternal.h21 void netfs_rreq_unlock_folios(struct netfs_io_request *rreq);
26 int netfs_begin_read(struct netfs_io_request *rreq, bool sync);
40 void netfs_get_request(struct netfs_io_request *rreq, enum netfs_rreq_ref_trace what);
41 void netfs_clear_subrequests(struct netfs_io_request *rreq, bool was_async);
42 void netfs_put_request(struct netfs_io_request *rreq, bool was_async,
44 struct netfs_io_subrequest *netfs_alloc_subrequest(struct netfs_io_request *rreq);
46 static inline void netfs_see_request(struct netfs_io_request *rreq, in netfs_see_request() argument
49 trace_netfs_rreq_ref(rreq->debug_id, refcount_read(&rreq->ref), what); in netfs_see_request()
/Linux-v6.1/fs/erofs/
Dfscache.c17 struct netfs_io_request *rreq; in erofs_fscache_alloc_request() local
19 rreq = kzalloc(sizeof(struct netfs_io_request), GFP_KERNEL); in erofs_fscache_alloc_request()
20 if (!rreq) in erofs_fscache_alloc_request()
23 rreq->start = start; in erofs_fscache_alloc_request()
24 rreq->len = len; in erofs_fscache_alloc_request()
25 rreq->mapping = mapping; in erofs_fscache_alloc_request()
26 rreq->inode = mapping->host; in erofs_fscache_alloc_request()
27 INIT_LIST_HEAD(&rreq->subrequests); in erofs_fscache_alloc_request()
28 refcount_set(&rreq->ref, 1); in erofs_fscache_alloc_request()
29 return rreq; in erofs_fscache_alloc_request()
[all …]
/Linux-v6.1/include/trace/events/
Dnetfs.h128 TP_PROTO(struct netfs_io_request *rreq,
132 TP_ARGS(rreq, start, len, what),
135 __field(unsigned int, rreq )
144 __entry->rreq = rreq->debug_id;
145 __entry->cookie = rreq->cache_resources.debug_id;
149 __entry->netfs_inode = rreq->inode->i_ino;
153 __entry->rreq,
161 TP_PROTO(struct netfs_io_request *rreq,
164 TP_ARGS(rreq, what),
167 __field(unsigned int, rreq )
[all …]
Dcachefiles.h439 __field(unsigned int, rreq )
451 __entry->rreq = sreq->rreq->debug_id;
458 __entry->netfs_inode = sreq->rreq->inode->i_ino;
463 __entry->rreq, __entry->index,
/Linux-v6.1/fs/9p/
Dvfs_addr.c36 struct netfs_io_request *rreq = subreq->rreq; in v9fs_issue_read() local
37 struct p9_fid *fid = rreq->netfs_priv; in v9fs_issue_read()
43 iov_iter_xarray(&to, READ, &rreq->mapping->i_pages, pos, len); in v9fs_issue_read()
59 static int v9fs_init_request(struct netfs_io_request *rreq, struct file *file) in v9fs_init_request() argument
70 if (rreq->origin == NETFS_READ_FOR_WRITE && in v9fs_init_request()
77 rreq->netfs_priv = fid; in v9fs_init_request()
85 static void v9fs_free_request(struct netfs_io_request *rreq) in v9fs_free_request() argument
87 struct p9_fid *fid = rreq->netfs_priv; in v9fs_free_request()
96 static int v9fs_begin_cache_operation(struct netfs_io_request *rreq) in v9fs_begin_cache_operation() argument
99 struct fscache_cookie *cookie = v9fs_inode_cookie(V9FS_I(rreq->inode)); in v9fs_begin_cache_operation()
[all …]
/Linux-v6.1/drivers/infiniband/sw/siw/
Dsiw_qp.c291 struct siw_sqe *rreq = NULL; in siw_qp_mpa_rts() local
298 rreq = orq_get_free(qp); in siw_qp_mpa_rts()
299 if (rreq) { in siw_qp_mpa_rts()
300 siw_read_to_orq(rreq, &wqe->sqe); in siw_qp_mpa_rts()
461 struct iwarp_rdma_rreq *rreq; in siw_send_terminate() local
469 rreq = (struct iwarp_rdma_rreq *)err_hdr; in siw_send_terminate()
471 memcpy(&rreq->ctrl, in siw_send_terminate()
475 rreq->rsvd = 0; in siw_send_terminate()
476 rreq->ddp_qn = in siw_send_terminate()
480 rreq->ddp_msn = htonl(wqe->sqe.sge[0].length); in siw_send_terminate()
[all …]
Dsiw_qp_rx.c665 uint64_t raddr = be64_to_cpu(srx->hdr.rreq.sink_to), in siw_init_rresp()
666 laddr = be64_to_cpu(srx->hdr.rreq.source_to); in siw_init_rresp()
667 uint32_t length = be32_to_cpu(srx->hdr.rreq.read_size), in siw_init_rresp()
668 lkey = be32_to_cpu(srx->hdr.rreq.source_stag), in siw_init_rresp()
669 rkey = be32_to_cpu(srx->hdr.rreq.sink_stag), in siw_init_rresp()
670 msn = be32_to_cpu(srx->hdr.rreq.ddp_msn); in siw_init_rresp()
1153 struct siw_sqe *rreq; in siw_check_tx_fence() local
1160 rreq = orq_get_current(qp); in siw_check_tx_fence()
1161 WRITE_ONCE(rreq->flags, 0); in siw_check_tx_fence()
1177 rreq = orq_get_free(qp); in siw_check_tx_fence()
[all …]
Dsiw_qp_tx.c132 c_tx->pkt.rreq.rsvd = 0; in siw_qp_prepare_tx()
133 c_tx->pkt.rreq.ddp_qn = htonl(RDMAP_UNTAGGED_QN_RDMA_READ); in siw_qp_prepare_tx()
134 c_tx->pkt.rreq.ddp_msn = in siw_qp_prepare_tx()
136 c_tx->pkt.rreq.ddp_mo = 0; in siw_qp_prepare_tx()
137 c_tx->pkt.rreq.sink_stag = htonl(wqe->sqe.sge[0].lkey); in siw_qp_prepare_tx()
138 c_tx->pkt.rreq.sink_to = in siw_qp_prepare_tx()
140 c_tx->pkt.rreq.source_stag = htonl(wqe->sqe.rkey); in siw_qp_prepare_tx()
141 c_tx->pkt.rreq.source_to = cpu_to_be64(wqe->sqe.raddr); in siw_qp_prepare_tx()
142 c_tx->pkt.rreq.read_size = htonl(wqe->sqe.sge[0].length); in siw_qp_prepare_tx()
Dsiw.h353 struct iwarp_rdma_rreq rreq; member
373 struct iwarp_rdma_rreq rreq; member
524 void siw_read_to_orq(struct siw_sqe *rreq, struct siw_sqe *sqe);
Diwarp.h276 struct iwarp_rdma_rreq rreq; member
/Linux-v6.1/include/linux/
Dnetfs.h148 struct netfs_io_request *rreq; /* Supervising I/O request */ member
208 int (*init_request)(struct netfs_io_request *rreq, struct file *file);
209 void (*free_request)(struct netfs_io_request *rreq);
210 int (*begin_cache_operation)(struct netfs_io_request *rreq);
212 void (*expand_readahead)(struct netfs_io_request *rreq);
215 bool (*is_still_valid)(struct netfs_io_request *rreq);
218 void (*done)(struct netfs_io_request *rreq);
/Linux-v6.1/net/9p/
Dtrans_fd.c121 struct p9_req_t *rreq; member
315 if ((!m->rreq) && (m->rc.offset == m->rc.capacity)) { in p9_read_work()
331 m->rreq = p9_tag_lookup(m->client, m->rc.tag); in p9_read_work()
332 if (!m->rreq || (m->rreq->status != REQ_STATUS_SENT)) { in p9_read_work()
339 if (m->rc.size > m->rreq->rc.capacity) { in p9_read_work()
342 m->rc.size, m->rc.tag, m->rreq->rc.capacity); in p9_read_work()
347 if (!m->rreq->rc.sdata) { in p9_read_work()
350 m->rc.tag, m->rreq); in p9_read_work()
351 p9_req_put(m->client, m->rreq); in p9_read_work()
352 m->rreq = NULL; in p9_read_work()
[all …]
/Linux-v6.1/fs/ceph/
Dcache.h60 static inline int ceph_begin_cache_operation(struct netfs_io_request *rreq) in ceph_begin_cache_operation() argument
62 struct fscache_cookie *cookie = ceph_fscache_cookie(ceph_inode(rreq->inode)); in ceph_begin_cache_operation()
64 return fscache_begin_read_operation(&rreq->cache_resources, cookie); in ceph_begin_cache_operation()
138 static inline int ceph_begin_cache_operation(struct netfs_io_request *rreq) in ceph_begin_cache_operation() argument
Daddr.c185 static void ceph_netfs_expand_readahead(struct netfs_io_request *rreq) in ceph_netfs_expand_readahead() argument
187 struct inode *inode = rreq->inode; in ceph_netfs_expand_readahead()
194 blockno = div_u64_rem(rreq->start, lo->stripe_unit, &blockoff); in ceph_netfs_expand_readahead()
195 rreq->start = blockno * lo->stripe_unit; in ceph_netfs_expand_readahead()
196 rreq->len += blockoff; in ceph_netfs_expand_readahead()
199 rreq->len = roundup(rreq->len, lo->stripe_unit); in ceph_netfs_expand_readahead()
204 struct inode *inode = subreq->rreq->inode; in ceph_netfs_clamp_length()
249 struct netfs_io_request *rreq = subreq->rreq; in ceph_netfs_issue_op_inline() local
250 struct inode *inode = rreq->inode; in ceph_netfs_issue_op_inline()
291 iov_iter_xarray(&iter, READ, &rreq->mapping->i_pages, subreq->start, len); in ceph_netfs_issue_op_inline()
[all …]
/Linux-v6.1/fs/afs/
Dfile.c313 struct afs_vnode *vnode = AFS_FS_I(subreq->rreq->inode); in afs_issue_read()
323 fsreq->key = key_get(subreq->rreq->netfs_priv); in afs_issue_read()
359 static int afs_init_request(struct netfs_io_request *rreq, struct file *file) in afs_init_request() argument
361 rreq->netfs_priv = key_get(afs_file_key(file)); in afs_init_request()
365 static int afs_begin_cache_operation(struct netfs_io_request *rreq) in afs_begin_cache_operation() argument
368 struct afs_vnode *vnode = AFS_FS_I(rreq->inode); in afs_begin_cache_operation()
370 return fscache_begin_read_operation(&rreq->cache_resources, in afs_begin_cache_operation()
385 static void afs_free_request(struct netfs_io_request *rreq) in afs_free_request() argument
387 key_put(rreq->netfs_priv); in afs_free_request()
/Linux-v6.1/Documentation/filesystems/
Dnetfs_library.rst239 struct netfs_io_request *rreq;
251 * ``rreq``
296 void (*init_request)(struct netfs_io_request *rreq, struct file *file);
297 void (*free_request)(struct netfs_io_request *rreq);
298 int (*begin_cache_operation)(struct netfs_io_request *rreq);
299 void (*expand_readahead)(struct netfs_io_request *rreq);
302 bool (*is_still_valid)(struct netfs_io_request *rreq);
305 void (*done)(struct netfs_io_request *rreq);
467 int fscache_begin_read_operation(struct netfs_io_request *rreq,
/Linux-v6.1/fs/cachefiles/
Dio.c396 struct netfs_io_request *rreq = subreq->rreq; in cachefiles_prepare_read() local
397 struct netfs_cache_resources *cres = &rreq->cache_resources; in cachefiles_prepare_read()
/Linux-v6.1/drivers/md/
Draid5.h262 struct bio req, rreq; member
Draid5.c1176 rbi = &dev->rreq; /* For writing to replacement */ in ops_run_io()
2892 if (bi == &sh->dev[i].rreq) { in raid5_end_write_request()
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Dtid_rdma.c1712 struct tid_rdma_read_req *rreq = &ohdr->u.tid_rdma.r_req; in hfi1_build_tid_rdma_read_packet() local
1746 KDETH_RESET(rreq->kdeth0, KVER, 0x1); in hfi1_build_tid_rdma_read_packet()
1747 KDETH_RESET(rreq->kdeth1, JKEY, remote->jkey); in hfi1_build_tid_rdma_read_packet()
1748 rreq->reth.vaddr = cpu_to_be64(wqe->rdma_wr.remote_addr + in hfi1_build_tid_rdma_read_packet()
1750 rreq->reth.rkey = cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_build_tid_rdma_read_packet()
1751 rreq->reth.length = cpu_to_be32(*len); in hfi1_build_tid_rdma_read_packet()
1752 rreq->tid_flow_psn = in hfi1_build_tid_rdma_read_packet()
1757 rreq->tid_flow_qp = in hfi1_build_tid_rdma_read_packet()
1762 rreq->verbs_qp = cpu_to_be32(qp->remote_qpn); in hfi1_build_tid_rdma_read_packet()