Lines Matching refs:arec
199 struct xfs_alloc_rec_incore arec = { in xrep_abt_stash() local
209 error = xrep_abt_check_free_ext(ra->sc, &arec); in xrep_abt_stash()
213 trace_xrep_abt_found(sc->mp, sc->sa.pag->pag_agno, &arec); in xrep_abt_stash()
215 error = xfarray_append(ra->free_records, &arec); in xrep_abt_stash()
219 ra->nr_blocks += arec.ar_blockcount; in xrep_abt_stash()
302 struct xfs_alloc_rec_incore arec; in xrep_bnobt_sort_records() local
311 while ((error = xfarray_iter(ra->free_records, &cur, &arec)) == 1) { in xrep_bnobt_sort_records()
312 if (arec.ar_startblock < next_agbno) in xrep_bnobt_sort_records()
315 next_agbno = arec.ar_startblock + arec.ar_blockcount; in xrep_bnobt_sort_records()
446 struct xfs_alloc_rec_incore arec; in xrep_abt_reserve_space() local
480 error = xfarray_load(ra->free_records, record_nr, &arec); in xrep_abt_reserve_space()
484 ASSERT(arec.ar_blockcount <= UINT_MAX); in xrep_abt_reserve_space()
485 len = min_t(unsigned int, arec.ar_blockcount, desired); in xrep_abt_reserve_space()
488 arec.ar_startblock, len, XFS_RMAP_OWN_AG); in xrep_abt_reserve_space()
491 arec.ar_startblock, len); in xrep_abt_reserve_space()
497 if (arec.ar_blockcount > desired) { in xrep_abt_reserve_space()
504 arec.ar_startblock += desired; in xrep_abt_reserve_space()
505 arec.ar_blockcount -= desired; in xrep_abt_reserve_space()
507 &arec); in xrep_abt_reserve_space()
610 struct xfs_alloc_rec_incore *arec = &cur->bc_rec.a; in xrep_abt_get_records() local
618 arec); in xrep_abt_get_records()
622 ra->longest = max(ra->longest, arec->ar_blockcount); in xrep_abt_get_records()