Skip to content
Snippets Groups Projects
Commit b499ded6 authored by alex's avatar alex
Browse files

- ost_brw_write() should return an error rather than uninitialized npages

parent 4176fa09
No related branches found
No related tags found
No related merge requests found
...@@ -603,7 +603,7 @@ int ost_brw_write(struct ptlrpc_request *req, struct obd_trans_info *oti) ...@@ -603,7 +603,7 @@ int ost_brw_write(struct ptlrpc_request *req, struct obd_trans_info *oti)
/* Do snap options here*/ /* Do snap options here*/
rc = obd_do_cow(req->rq_export, ioo, objcount, remote_nb); rc = obd_do_cow(req->rq_export, ioo, objcount, remote_nb);
if (rc) if (rc)
GOTO(out, rc = npages); GOTO(out, rc);
/* FIXME all niobuf splitting should be done in obdfilter if needed */ /* FIXME all niobuf splitting should be done in obdfilter if needed */
/* CAVEAT EMPTOR this sets ioo->ioo_bufcnt to # pages */ /* CAVEAT EMPTOR this sets ioo->ioo_bufcnt to # pages */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment