Lines Matching refs:agf_bp
139 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument
143 struct xfs_agf *old_agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf_find_btrees()
147 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
180 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument
184 struct xfs_agf *agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf_init_header()
187 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header()
237 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument
241 struct xfs_agf *agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf_calc_from_btrees()
248 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees()
262 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees()
271 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno); in xrep_agf_calc_from_btrees()
283 cur = xfs_refcountbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
302 struct xfs_buf *agf_bp) in xrep_agf_commit_new() argument
305 struct xfs_agf *agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf_commit_new()
311 xfs_trans_buf_set_type(sc->tp, agf_bp, XFS_BLFT_AGF_BUF); in xrep_agf_commit_new()
312 xfs_trans_log_buf(sc->tp, agf_bp, 0, BBTOB(agf_bp->b_length) - 1); in xrep_agf_commit_new()
359 struct xfs_buf *agf_bp; in xrep_agf() local
375 XFS_FSS_TO_BB(mp, 1), 0, &agf_bp, NULL); in xrep_agf()
378 agf_bp->b_ops = &xfs_agf_buf_ops; in xrep_agf()
379 agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf()
398 error = xfs_agfl_walk(sc->mp, XFS_BUF_TO_AGF(agf_bp), agfl_bp, in xrep_agf()
407 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp); in xrep_agf()
412 xrep_agf_init_header(sc, agf_bp, &old_agf); in xrep_agf()
414 error = xrep_agf_calc_from_btrees(sc, agf_bp); in xrep_agf()
419 return xrep_agf_commit_new(sc, agf_bp); in xrep_agf()
478 struct xfs_buf *agf_bp, in xrep_agfl_collect_blocks() argument
494 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno); in xrep_agfl_collect_blocks()
501 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agfl_collect_blocks()
509 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agfl_collect_blocks()
550 struct xfs_buf *agf_bp, in xrep_agfl_update_agf() argument
553 struct xfs_agf *agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agfl_update_agf()
567 xfs_alloc_log_agf(sc->tp, agf_bp, in xrep_agfl_update_agf()
642 struct xfs_buf *agf_bp; in xrep_agfl() local
659 error = xfs_alloc_read_agf(mp, sc->tp, sc->sa.agno, 0, &agf_bp); in xrep_agfl()
662 if (!agf_bp) in xrep_agfl()
677 error = xrep_agfl_collect_blocks(sc, agf_bp, &agfl_extents, &flcount); in xrep_agfl()
686 xrep_agfl_update_agf(sc, agf_bp, flcount); in xrep_agfl()
694 sc->sa.agf_bp = agf_bp; in xrep_agfl()
730 struct xfs_buf *agf_bp; in xrep_agi_find_btrees() local
735 error = xfs_alloc_read_agf(mp, sc->tp, sc->sa.agno, 0, &agf_bp); in xrep_agi_find_btrees()
738 if (!agf_bp) in xrep_agi_find_btrees()
742 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL); in xrep_agi_find_btrees()