- RETURN(rc);
-}
-
-static int ost_brw_write_cb(struct ptlrpc_bulk_page *bulk)
-{
- struct obd_ioobj obj;
- struct niobuf_local lnb;
- int rc;
- ENTRY;
-
- memset(&lnb, 0, sizeof(lnb));
- memset(&obj, 0, sizeof(obj));
-
- lnb.page = bulk->b_page;
- lnb.dentry = bulk->b_dentry;
- lnb.flags = bulk->b_flags;
- obj.ioo_bufcnt = 1;
-
- rc = obd_commitrw(OBD_BRW_WRITE, &bulk->b_desc->b_conn, 1, &obj, 1,
- &lnb, bulk->b_desc->b_desc_private);