diff options
| author | David Howells <[email protected]> | 2024-07-08 13:49:45 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-09-12 10:20:40 +0000 |
| commit | bfaa33b8ba196f9506a45e5a36e968f087c8cd16 (patch) | |
| tree | 36699fc2f9a50097000ca6e01734e9105cbf4a05 /fs/netfs/write_collect.c | |
| parent | netfs: Use new folio_queue data type and iterator instead of xarray iter (diff) | |
| download | kernel-bfaa33b8ba196f9506a45e5a36e968f087c8cd16.tar.gz kernel-bfaa33b8ba196f9506a45e5a36e968f087c8cd16.zip | |
netfs: Provide an iterator-reset function
Provide a function to reset the iterator on a subrequest.
Signed-off-by: David Howells <[email protected]>
cc: Jeff Layton <[email protected]>
cc: [email protected]
cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]/ # v2
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/netfs/write_collect.c')
| -rw-r--r-- | fs/netfs/write_collect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/netfs/write_collect.c b/fs/netfs/write_collect.c index 7a41e76c1ba9..2a47af45faa0 100644 --- a/fs/netfs/write_collect.c +++ b/fs/netfs/write_collect.c @@ -226,9 +226,8 @@ static void netfs_retry_write_stream(struct netfs_io_request *wreq, /* Determine the set of buffers we're going to use. Each * subreq gets a subset of a single overall contiguous buffer. */ + netfs_reset_iter(from); source = from->io_iter; - iov_iter_revert(&source, subreq->len - source.count); - iov_iter_advance(&source, from->transferred); source.count = len; /* Work through the sublist. */ |
