aboutsummaryrefslogtreecommitdiffstats
path: root/fs/smb/client/file.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2024-12-16 20:40:58 +0000
committerChristian Brauner <[email protected]>2024-12-20 21:34:03 +0000
commit360157829ee3dba848ffa817792d9a07969e0a95 (patch)
tree50ec8de002e0066f18f10029498779ac3482269a /fs/smb/client/file.c
parentnetfs: Split retry code out of fs/netfs/write_collect.c (diff)
downloadkernel-360157829ee3dba848ffa817792d9a07969e0a95.tar.gz
kernel-360157829ee3dba848ffa817792d9a07969e0a95.zip
netfs: Drop the error arg from netfs_read_subreq_terminated()
Drop the error argument from netfs_read_subreq_terminated() in favour of passing the value in subreq->error. Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected] cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/smb/client/file.c')
-rw-r--r--fs/smb/client/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c
index a58a3333ecc3..10dd440f8178 100644
--- a/fs/smb/client/file.c
+++ b/fs/smb/client/file.c
@@ -227,7 +227,8 @@ static void cifs_issue_read(struct netfs_io_subrequest *subreq)
return;
failed:
- netfs_read_subreq_terminated(subreq, rc, false);
+ subreq->error = rc;
+ netfs_read_subreq_terminated(subreq, false);
}
/*