diff mbox series

[for-6.11,19/29] nfs/write: fix nfs_initiate_commit to return error from nfs_local_commit

Message ID 20240607142646.20924-20-snitzer@kernel.org (mailing list archive)
State New
Headers show
Series nfs/nfsd: add support for localio bypass | expand

Commit Message

Mike Snitzer June 7, 2024, 2:26 p.m. UTC
status was established in nfs_initiate_commit when nfs_local_commit
was introduced, but it was never actually used to return any error
from nfs_local_commit.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
---
 fs/nfs/write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 79375af3f2a6..7deda7e90d22 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1704,7 +1704,7 @@  int nfs_initiate_commit(struct nfs_client *clp,
 	dprintk("NFS: initiated commit call\n");
 
 	if (localio) {
-		nfs_local_commit(clp, localio, data, call_ops, how);
+		status = nfs_local_commit(clp, localio, data, call_ops, how);
 		goto out;
 	}