Lines Matching full:transferred
23 WARN_ON_ONCE(subreq->len - subreq->transferred != iov_iter_count(&subreq->io_iter)); in netfs_clear_unread()
25 if (subreq->start + subreq->transferred >= subreq->rreq->i_size) in netfs_clear_unread()
98 if (WARN(subreq->transferred > subreq->len, in netfs_consume_read_data()
101 subreq->transferred, subreq->len)) in netfs_consume_read_data()
102 subreq->transferred = subreq->len; in netfs_consume_read_data()
114 subreq->start, subreq->start + subreq->transferred - 1, in netfs_consume_read_data()
115 subreq->consumed, subreq->transferred, subreq->len, in netfs_consume_read_data()
147 subreq->transferred += prev_donated; in netfs_consume_read_data()
149 if (subreq->transferred == subreq->len) { in netfs_consume_read_data()
151 subreq->transferred += next_donated; in netfs_consume_read_data()
158 avail = subreq->transferred; in netfs_consume_read_data()
204 subreq->transferred -= excess; in netfs_consume_read_data()
233 if (subreq->transferred < subreq->len) in netfs_consume_read_data()
264 subreq->transferred = 0; in netfs_consume_read_data()
289 subreq->transferred = subreq->consumed; in netfs_consume_read_data()
307 subreq->start, subreq->start + subreq->transferred - 1, in netfs_consume_read_data()
308 subreq->consumed, subreq->transferred, subreq->len); in netfs_consume_read_data()
327 rreq->transferred += subreq->transferred; in netfs_rreq_assess_dio()
329 if (subreq->transferred < subreq->len || in netfs_rreq_assess_dio()
347 rreq->iocb->ki_pos += rreq->transferred; in netfs_rreq_assess_dio()
350 rreq->iocb, rreq->error ? rreq->error : rreq->transferred); in netfs_rreq_assess_dio()
378 task_io_account_read(rreq->transferred); in netfs_rreq_assess()
423 * Before calling, the filesystem should update subreq->transferred to track
436 if (subreq->transferred > subreq->consumed && in netfs_read_subreq_progress()
460 * Before calling, the filesystem should update subreq->transferred to track
488 if (error == 0 && subreq->transferred < subreq->len && in netfs_read_subreq_terminated()
492 subreq->transferred = subreq->len; in netfs_read_subreq_terminated()
495 if (subreq->transferred > subreq->consumed && in netfs_read_subreq_terminated()
502 rreq->transferred += subreq->transferred; in netfs_read_subreq_terminated()
508 if (!error && subreq->transferred < subreq->len) { in netfs_read_subreq_terminated()
513 if (subreq->transferred > subreq->consumed) { in netfs_read_subreq_terminated()