Lines Matching full:transferred
122 /* Unlock any folio we've transferred all of. */ in netfs_writeback_unlock_folios()
205 start = from->start + from->transferred; in netfs_retry_write_stream()
206 len = from->len - from->transferred; in netfs_retry_write_stream()
214 if (subreq->start + subreq->transferred != start + len || in netfs_retry_write_stream()
243 subreq->transferred = 0; in netfs_retry_write_stream()
310 subreq->len = subreq->transferred + part; in netfs_retry_write_stream()
354 // TODO: Enc: Wind back transferred point. in netfs_retry_writes()
413 // front->debug_index, front->start, front->transferred, front->len); in netfs_collect_write_results()
432 if (front->start + front->transferred > stream->collected_to) { in netfs_collect_write_results()
433 stream->collected_to = front->start + front->transferred; in netfs_collect_write_results()
434 stream->transferred = stream->collected_to - wreq->start; in netfs_collect_write_results()
445 if (front->transferred < front->len) { in netfs_collect_write_results()
525 * that any partially completed op will have had any wholly transferred in netfs_collect_write_results()
540 size_t transferred; in netfs_write_collection_worker() local
562 transferred = LONG_MAX; in netfs_write_collection_worker()
571 if (stream->transferred < transferred) in netfs_write_collection_worker()
572 transferred = stream->transferred; in netfs_write_collection_worker()
576 wreq->transferred = transferred; in netfs_write_collection_worker()
599 pgoff_t last = (wreq->start + wreq->transferred - 1) >> PAGE_SHIFT; in netfs_write_collection_worker()
612 size_t written = min(wreq->transferred, wreq->len); in netfs_write_collection_worker()
639 * @transferred_or_error: The amount of data transferred or an error code.
646 * supplying a positive value to indicate the number of bytes transferred or a
653 * When this is called, ownership of the subrequest is transferred back to the
702 if (WARN(transferred_or_error > subreq->len - subreq->transferred, in netfs_write_subrequest_terminated()
705 transferred_or_error, subreq->len, subreq->transferred)) in netfs_write_subrequest_terminated()
706 transferred_or_error = subreq->len - subreq->transferred; in netfs_write_subrequest_terminated()
709 subreq->transferred += transferred_or_error; in netfs_write_subrequest_terminated()
711 if (subreq->transferred < subreq->len) in netfs_write_subrequest_terminated()