Lines Matching defs:agf_bp
154 struct xfs_buf *agf_bp,
158 struct xfs_agf *old_agf = agf_bp->b_addr;
162 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp);
195 struct xfs_buf *agf_bp,
200 struct xfs_agf *agf = agf_bp->b_addr;
203 memset(agf, 0, BBTOB(agf_bp->b_length));
253 struct xfs_buf *agf_bp)
257 struct xfs_agf *agf = agf_bp->b_addr;
264 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp,
278 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp,
287 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
299 cur = xfs_refcountbt_init_cursor(mp, sc->tp, agf_bp,
318 struct xfs_buf *agf_bp)
321 struct xfs_agf *agf = agf_bp->b_addr;
327 xfs_trans_buf_set_type(sc->tp, agf_bp, XFS_BLFT_AGF_BUF);
328 xfs_trans_log_buf(sc->tp, agf_bp, 0, BBTOB(agf_bp->b_length) - 1);
379 struct xfs_buf *agf_bp;
395 XFS_FSS_TO_BB(mp, 1), 0, &agf_bp, NULL);
398 agf_bp->b_ops = &xfs_agf_buf_ops;
399 agf = agf_bp->b_addr;
418 error = xfs_agfl_walk(sc->mp, agf_bp->b_addr, agfl_bp,
427 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp);
436 xrep_agf_init_header(sc, agf_bp, &old_agf);
438 error = xrep_agf_calc_from_btrees(sc, agf_bp);
443 return xrep_agf_commit_new(sc, agf_bp);
540 struct xfs_buf *agf_bp,
555 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
562 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp,
570 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp,
586 ra.rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag);
612 struct xfs_buf *agf_bp,
615 struct xfs_agf *agf = agf_bp->b_addr;
635 xfs_alloc_log_agf(sc->tp, agf_bp,
728 struct xfs_buf *agf_bp;
744 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp);
761 error = xrep_agfl_collect_blocks(sc, agf_bp, &agfl_extents, &flcount);
774 xrep_agfl_update_agf(sc, agf_bp, flcount);
784 sc->sa.agf_bp = agf_bp;
819 struct xfs_buf *agf_bp;
824 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp);
829 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL);