Lines Matching refs:agbp

723 	struct xfs_buf		*agbp,  in xfs_alloc_update_counters()  argument
726 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters()
728 agbp->b_pag->pagf_freeblks += len; in xfs_alloc_update_counters()
733 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
737 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
787 args->agbp, args->pag, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
797 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
800 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
931 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish()
1035 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small()
1067 error = xfs_alloc_get_freelist(args->pag, args->tp, args->agbp, in xfs_alloc_ag_vextent_small()
1100 error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1138 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_exact()
1155 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1215 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1595 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_size()
1611 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1773 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1813 struct xfs_buf *agbp, in xfs_free_ag_extent() argument
1833 struct xfs_perag *pag = agbp->b_pag; in xfs_free_ag_extent()
1839 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo); in xfs_free_ag_extent()
1847 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1917 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_CNT); in xfs_free_ag_extent()
2101 error = xfs_alloc_update_counters(tp, agbp, len); in xfs_free_ag_extent()
2102 xfs_ag_resv_free_extent(agbp->b_pag, type, tp, len); in xfs_free_ag_extent()
2268 struct xfs_buf *agbp, in xfs_free_agfl_block() argument
2274 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2352 struct xfs_buf *agbp, in xfs_agfl_reset() argument
2356 struct xfs_agf *agf = agbp->b_addr; in xfs_agfl_reset()
2369 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FLFIRST | XFS_AGF_FLLAST | in xfs_agfl_reset()
2473 struct xfs_buf *agbp, in xfs_exact_minlen_extent_available() argument
2481 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, agbp, in xfs_exact_minlen_extent_available()
2518 struct xfs_buf *agbp = NULL; in xfs_alloc_fix_freelist() local
2529 error = xfs_alloc_read_agf(pag, tp, flags, &agbp); in xfs_alloc_fix_freelist()
2559 if (!agbp) { in xfs_alloc_fix_freelist()
2560 error = xfs_alloc_read_agf(pag, tp, flags, &agbp); in xfs_alloc_fix_freelist()
2571 xfs_agfl_reset(tp, agbp, pag); in xfs_alloc_fix_freelist()
2582 error = xfs_exact_minlen_extent_available(args, agbp, &stat); in xfs_alloc_fix_freelist()
2618 error = xfs_alloc_get_freelist(pag, tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2628 targs.agbp = agbp; in xfs_alloc_fix_freelist()
2659 error = xfs_rmap_alloc(tp, agbp, pag, in xfs_alloc_fix_freelist()
2664 error = xfs_alloc_update_counters(tp, agbp, in xfs_alloc_fix_freelist()
2673 error = xfs_alloc_put_freelist(pag, tp, agbp, in xfs_alloc_fix_freelist()
2680 args->agbp = agbp; in xfs_alloc_fix_freelist()
2686 if (agbp) in xfs_alloc_fix_freelist()
2687 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2689 args->agbp = NULL; in xfs_alloc_fix_freelist()
2701 struct xfs_buf *agbp, in xfs_alloc_get_freelist() argument
2705 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_get_freelist()
2749 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2804 struct xfs_buf *agbp, in xfs_alloc_put_freelist() argument
2810 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_put_freelist()
2838 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2847 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
3159 args->agbp = NULL; in xfs_alloc_vextent_prepare_ag()
3168 if (!args->agbp) { in xfs_alloc_vextent_prepare_ag()
3211 if (args->agbp && in xfs_alloc_vextent_finish()
3237 error = xfs_rmap_alloc(args->tp, args->agbp, args->pag, in xfs_alloc_vextent_finish()
3244 error = xfs_alloc_update_counters(args->tp, args->agbp, in xfs_alloc_vextent_finish()
3293 if (!error && args->agbp) in xfs_alloc_vextent_this_ag()
3336 if (!args->agbp) { in xfs_alloc_vextent_iterate_ags()
3359 if (args->agbp) in xfs_alloc_vextent_iterate_ags()
3483 if (!error && args->agbp) in xfs_alloc_vextent_exact_bno()
3518 if (!error && args->agbp) in xfs_alloc_vextent_near_bno()
3529 struct xfs_buf **agbp) in xfs_free_extent_fix_freelist() argument
3551 *agbp = args.agbp; in xfs_free_extent_fix_freelist()
3570 struct xfs_buf *agbp; in __xfs_free_extent() local
3586 error = xfs_free_extent_fix_freelist(tp, pag, &agbp); in __xfs_free_extent()
3589 agf = agbp->b_addr; in __xfs_free_extent()
3602 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3613 xfs_trans_brelse(tp, agbp); in __xfs_free_extent()