[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <161781046256.463527.18158681600085556192.stgit@warthog.procyon.org.uk>
Date: Wed, 07 Apr 2021 16:47:42 +0100
From: David Howells <dhowells@...hat.com>
To: jlayton@...nel.org
Cc: dwysocha@...hat.com, linux-cachefs@...hat.com,
v9fs-developer@...ts.sourceforge.net,
linux-afs@...ts.infradead.org, linux-cifs@...r.kernel.org,
ceph-devel@...r.kernel.org, linux-nfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/5] netfs: Don't record the copy termination error
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@...hat.com>
---
fs/netfs/read_helper.c | 2 --
1 file changed, 2 deletions(-)
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);
}
Powered by blists - more mailing lists