From b499ded6262b2e361fe65d55ca1689fee4c23544 Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Thu, 22 Jul 2004 09:08:10 +0000 Subject: [PATCH] - ost_brw_write() should return an error rather than uninitialized npages --- lustre/ost/ost_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 3cbf75f548..9015771fa7 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -603,7 +603,7 @@ int ost_brw_write(struct ptlrpc_request *req, struct obd_trans_info *oti) /* Do snap options here*/ rc = obd_do_cow(req->rq_export, ioo, objcount, remote_nb); if (rc) - GOTO(out, rc = npages); + GOTO(out, rc); /* FIXME all niobuf splitting should be done in obdfilter if needed */ /* CAVEAT EMPTOR this sets ioo->ioo_bufcnt to # pages */ -- GitLab