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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 fs/nfs/write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
 
-- 
2.44.0





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux