Message ID | 161781046256.463527.18158681600085556192.stgit@warthog.procyon.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | netfs: Fixes for the netfs lib | expand |
diff --git a/fs/netfs/read_helper.c b/fs/netfs/read_helper.c index 8040b76da1b6..ad0dc01319ce 100644 --- a/fs/netfs/read_helper.c +++ b/fs/netfs/read_helper.c @@ -270,10 +270,8 @@ static void netfs_rreq_copy_terminated(void *priv, ssize_t transferred_or_error, struct netfs_read_request *rreq = subreq->rreq; if (IS_ERR_VALUE(transferred_or_error)) { - subreq->error = transferred_or_error; netfs_stat(&netfs_n_rh_write_failed); } else { - subreq->error = 0; netfs_stat(&netfs_n_rh_write_done); }
Don't record the copy termination error in the subrequest. We shouldn't return it through netfs_readpage() or netfs_write_begin() as we don't let the netfs see cache errors. Signed-off-by: David Howells <dhowells@redhat.com> --- fs/netfs/read_helper.c | 2 -- 1 file changed, 2 deletions(-)