From: alex Date: Thu, 22 Jul 2004 09:08:10 +0000 (+0000) Subject: - ost_brw_write() should return an error rather than uninitialized npages X-Git-Tag: 1.3.4~558 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b499ded6262b2e361fe65d55ca1689fee4c23544;p=fs%2Flustre-release.git - ost_brw_write() should return an error rather than uninitialized npages --- diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 3cbf75f..9015771 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 */