Lines Matching refs:error
110 int error; in xreap_put_freelist() local
113 error = xrep_fix_freelist(sc, true); in xreap_put_freelist()
114 if (error) in xreap_put_freelist()
115 return error; in xreap_put_freelist()
122 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist()
124 if (error) in xreap_put_freelist()
125 return error; in xreap_put_freelist()
128 error = xfs_alloc_read_agfl(sc->sa.pag, sc->tp, &agfl_bp); in xreap_put_freelist()
129 if (error) in xreap_put_freelist()
130 return error; in xreap_put_freelist()
132 error = xfs_alloc_put_freelist(sc->sa.pag, sc->tp, sc->sa.agf_bp, in xreap_put_freelist()
134 if (error) in xreap_put_freelist()
135 return error; in xreap_put_freelist()
253 int error; in xreap_agextent_binval() local
256 error = xfs_buf_incore(mp->m_ddev_targp, daddr, in xreap_agextent_binval()
259 if (error) in xreap_agextent_binval()
302 int error; in xreap_agextent_select() local
310 error = xfs_rmap_has_other_keys(cur, agbno, 1, rs->oinfo, in xreap_agextent_select()
312 if (error) in xreap_agextent_select()
326 error = xfs_rmap_has_other_keys(cur, bno, 1, rs->oinfo, in xreap_agextent_select()
328 if (error) in xreap_agextent_select()
342 xfs_btree_del_cursor(cur, error); in xreap_agextent_select()
343 return error; in xreap_agextent_select()
359 int error = 0; in xreap_agextent_iter() local
401 error = xreap_put_freelist(sc, agbno); in xreap_agextent_iter()
402 if (error) in xreap_agextent_iter()
403 return error; in xreap_agextent_iter()
413 error = __xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, in xreap_agextent_iter()
415 if (error) in xreap_agextent_iter()
416 return error; in xreap_agextent_iter()
436 int error = 0; in xreap_agmeta_extent() local
445 error = xreap_agextent_select(rs, agbno, agbno_next, in xreap_agmeta_extent()
447 if (error) in xreap_agmeta_extent()
448 return error; in xreap_agmeta_extent()
450 error = xreap_agextent_iter(rs, agbno, &aglen, crosslinked); in xreap_agmeta_extent()
451 if (error) in xreap_agmeta_extent()
452 return error; in xreap_agmeta_extent()
455 error = xrep_defer_finish(sc); in xreap_agmeta_extent()
456 if (error) in xreap_agmeta_extent()
457 return error; in xreap_agmeta_extent()
460 error = xrep_roll_ag_trans(sc); in xreap_agmeta_extent()
461 if (error) in xreap_agmeta_extent()
462 return error; in xreap_agmeta_extent()
485 int error; in xrep_reap_agblocks() local
490 error = xagb_bitmap_walk(bitmap, xreap_agmeta_extent, &rs); in xrep_reap_agblocks()
491 if (error) in xrep_reap_agblocks()
492 return error; in xrep_reap_agblocks()