Lines Matching refs:agbp
680 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
683 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters()
693 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
750 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
758 args->agbp, in xfs_alloc_ag_vextent()
800 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
857 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
860 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_exact()
1045 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1158 ASSERT(ltbno + ltlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1171 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1199 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1357 ASSERT(ltnew + rlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1410 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1552 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1564 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_size()
1617 (be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_flcount) in xfs_alloc_ag_vextent_small()
1619 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1641 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_small()
1652 error = xfs_rmap_free(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent_small()
1698 xfs_buf_t *agbp, in xfs_free_ag_extent() argument
1724 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1732 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1791 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1930 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
2082 struct xfs_buf *agbp, in xfs_free_agfl_block() argument
2088 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2164 struct xfs_buf *agbp, in xfs_agfl_reset() argument
2168 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_agfl_reset()
2181 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FLFIRST | XFS_AGF_FLLAST | in xfs_agfl_reset()
2234 struct xfs_buf *agbp = NULL; in xfs_alloc_fix_freelist() local
2242 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2272 if (!agbp) { in xfs_alloc_fix_freelist()
2273 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2276 if (!agbp) { in xfs_alloc_fix_freelist()
2285 xfs_agfl_reset(tp, agbp, pag); in xfs_alloc_fix_freelist()
2322 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2332 targs.agbp = agbp; in xfs_alloc_fix_freelist()
2366 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2373 args->agbp = agbp; in xfs_alloc_fix_freelist()
2379 if (agbp) in xfs_alloc_fix_freelist()
2380 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2382 args->agbp = NULL; in xfs_alloc_fix_freelist()
2393 xfs_buf_t *agbp, /* buffer containing the agf structure */ in xfs_alloc_get_freelist() argument
2409 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_get_freelist()
2447 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2521 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_alloc_put_freelist() argument
2535 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_put_freelist()
2559 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2568 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2828 if (!args->agbp) { in xfs_alloc_vextent()
2884 if (args->agbp) { in xfs_alloc_vextent()
2976 struct xfs_buf **agbp) in xfs_free_extent_fix_freelist() argument
3000 *agbp = args.agbp; in xfs_free_extent_fix_freelist()
3021 struct xfs_buf *agbp; in __xfs_free_extent() local
3034 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in __xfs_free_extent()
3042 agbno + len <= be32_to_cpu(XFS_BUF_TO_AGF(agbp)->agf_length), in __xfs_free_extent()
3045 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3055 xfs_trans_brelse(tp, agbp); in __xfs_free_extent()