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