diff options
author | 2024-07-08 14:49:45 +0100 | |
---|---|---|
committer | 2024-09-12 12:20:40 +0200 | |
commit | bfaa33b8ba196f9506a45e5a36e968f087c8cd16 (patch) | |
tree | 36699fc2f9a50097000ca6e01734e9105cbf4a05 /fs/netfs/write_issue.c | |
parent | netfs: Use new folio_queue data type and iterator instead of xarray iter (diff) | |
download | wireguard-linux-bfaa33b8ba196f9506a45e5a36e968f087c8cd16.tar.xz wireguard-linux-bfaa33b8ba196f9506a45e5a36e968f087c8cd16.zip |
netfs: Provide an iterator-reset function
Provide a function to reset the iterator on a subrequest.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20240814203850.2240469-17-dhowells@redhat.com/ # v2
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/netfs/write_issue.c')
-rw-r--r-- | fs/netfs/write_issue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/netfs/write_issue.c b/fs/netfs/write_issue.c index a75b62b202c5..9ead075962f0 100644 --- a/fs/netfs/write_issue.c +++ b/fs/netfs/write_issue.c @@ -261,9 +261,9 @@ static void netfs_issue_write(struct netfs_io_request *wreq, * we can avoid overrunning the credits obtained (cifs) and try to parallelise * content-crypto preparation with network writes. */ -int netfs_advance_write(struct netfs_io_request *wreq, - struct netfs_io_stream *stream, - loff_t start, size_t len, bool to_eof) +static int netfs_advance_write(struct netfs_io_request *wreq, + struct netfs_io_stream *stream, + loff_t start, size_t len, bool to_eof) { struct netfs_io_subrequest *subreq = stream->construct; size_t part; |