Lines Matching refs:oir
185 objlayout_iodone(struct objlayout_io_res *oir) in objlayout_iodone() argument
187 if (likely(oir->status >= 0)) { in objlayout_iodone()
188 objio_free_result(oir); in objlayout_iodone()
190 struct objlayout *objlay = oir->objlay; in objlayout_iodone()
194 list_add(&objlay->err_list, &oir->err_list); in objlayout_iodone()
206 objlayout_io_set_result(struct objlayout_io_res *oir, unsigned index, in objlayout_io_set_result() argument
210 struct pnfs_osd_ioerr *ioerr = &oir->ioerrs[index]; in objlayout_io_set_result()
212 BUG_ON(index >= oir->num_comps); in objlayout_io_set_result()
253 objlayout_read_done(struct objlayout_io_res *oir, ssize_t status, bool sync) in objlayout_read_done() argument
255 struct nfs_read_data *rdata = oir->rpcdata; in objlayout_read_done()
257 oir->status = rdata->task.tk_status = status; in objlayout_read_done()
262 objlayout_iodone(oir); in objlayout_read_done()
334 objlayout_write_done(struct objlayout_io_res *oir, ssize_t status, bool sync) in objlayout_write_done() argument
336 struct nfs_write_data *wdata = oir->rpcdata; in objlayout_write_done()
338 oir->status = wdata->task.tk_status = status; in objlayout_write_done()
341 wdata->verf.committed = oir->committed; in objlayout_write_done()
345 objlayout_iodone(oir); in objlayout_write_done()
484 struct objlayout_io_res *oir, *tmp; in encode_accumulated_error() local
487 list_for_each_entry_safe(oir, tmp, &objlay->err_list, err_list) { in encode_accumulated_error()
490 for (i = 0; i < oir->num_comps; i++) { in encode_accumulated_error()
491 struct pnfs_osd_ioerr *ioerr = &oir->ioerrs[i]; in encode_accumulated_error()
510 list_del(&oir->err_list); in encode_accumulated_error()
511 objio_free_result(oir); in encode_accumulated_error()
523 struct objlayout_io_res *oir, *tmp; in objlayout_encode_layoutreturn() local
532 list_for_each_entry_safe(oir, tmp, &objlay->err_list, err_list) { in objlayout_encode_layoutreturn()
537 for (i = 0; i < oir->num_comps; i++) { in objlayout_encode_layoutreturn()
538 struct pnfs_osd_ioerr *ioerr = &oir->ioerrs[i]; in objlayout_encode_layoutreturn()
562 pnfs_osd_xdr_encode_ioerr(p, &oir->ioerrs[i]); in objlayout_encode_layoutreturn()
578 list_del(&oir->err_list); in objlayout_encode_layoutreturn()
579 objio_free_result(oir); in objlayout_encode_layoutreturn()