Lines Matching refs:agf_bp

149 	struct xfs_buf			*agf_bp,  in xrep_agf_find_btrees()  argument
153 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees()
157 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
190 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument
194 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header()
197 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header()
247 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument
251 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees()
258 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
272 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
281 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agf_calc_from_btrees()
293 cur = xfs_refcountbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
312 struct xfs_buf *agf_bp) in xrep_agf_commit_new() argument
315 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_commit_new()
321 xfs_trans_buf_set_type(sc->tp, agf_bp, XFS_BLFT_AGF_BUF); in xrep_agf_commit_new()
322 xfs_trans_log_buf(sc->tp, agf_bp, 0, BBTOB(agf_bp->b_length) - 1); in xrep_agf_commit_new()
373 struct xfs_buf *agf_bp; in xrep_agf() local
389 XFS_FSS_TO_BB(mp, 1), 0, &agf_bp, NULL); in xrep_agf()
392 agf_bp->b_ops = &xfs_agf_buf_ops; in xrep_agf()
393 agf = agf_bp->b_addr; in xrep_agf()
412 error = xfs_agfl_walk(sc->mp, agf_bp->b_addr, agfl_bp, in xrep_agf()
421 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp); in xrep_agf()
426 xrep_agf_init_header(sc, agf_bp, &old_agf); in xrep_agf()
428 error = xrep_agf_calc_from_btrees(sc, agf_bp); in xrep_agf()
433 return xrep_agf_commit_new(sc, agf_bp); in xrep_agf()
492 struct xfs_buf *agf_bp, in xrep_agfl_collect_blocks() argument
506 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agfl_collect_blocks()
513 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agfl_collect_blocks()
521 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agfl_collect_blocks()
556 struct xfs_buf *agf_bp, in xrep_agfl_update_agf() argument
559 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agfl_update_agf()
573 xfs_alloc_log_agf(sc->tp, agf_bp, in xrep_agfl_update_agf()
649 struct xfs_buf *agf_bp; in xrep_agfl() local
665 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp); in xrep_agfl()
682 error = xrep_agfl_collect_blocks(sc, agf_bp, &agfl_extents, &flcount); in xrep_agfl()
691 xrep_agfl_update_agf(sc, agf_bp, flcount); in xrep_agfl()
699 sc->sa.agf_bp = agf_bp; in xrep_agfl()
735 struct xfs_buf *agf_bp; in xrep_agi_find_btrees() local
740 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp); in xrep_agi_find_btrees()
745 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL); in xrep_agi_find_btrees()