aboutsummaryrefslogtreecommitdiffstats
path: root/fs/netfs/write_issue.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2024-07-08 13:49:45 +0000
committerChristian Brauner <[email protected]>2024-09-12 10:20:40 +0000
commitbfaa33b8ba196f9506a45e5a36e968f087c8cd16 (patch)
tree36699fc2f9a50097000ca6e01734e9105cbf4a05 /fs/netfs/write_issue.c
parentnetfs: Use new folio_queue data type and iterator instead of xarray iter (diff)
downloadkernel-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_issue.c')
-rw-r--r--fs/netfs/write_issue.c6
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;