Lines Matching refs:agbp
713 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
716 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters()
718 agbp->b_pag->pagf_freeblks += len; in xfs_alloc_update_counters()
724 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
728 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
780 args->agbp, args->agno, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
790 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
793 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
925 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish()
1029 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small()
1061 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1093 error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
1170 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
1177 error = xfs_alloc_update_counters(args->tp, args->agbp, in xfs_alloc_ag_vextent()
1203 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_exact()
1220 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1280 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1661 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_size()
1677 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1840 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1880 struct xfs_buf *agbp, in xfs_free_ag_extent() argument
1905 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1913 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1983 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
2167 error = xfs_alloc_update_counters(tp, agbp, len); in xfs_free_ag_extent()
2168 xfs_ag_resv_free_extent(agbp->b_pag, type, tp, len); in xfs_free_ag_extent()
2333 struct xfs_buf *agbp, in xfs_free_agfl_block() argument
2339 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2417 struct xfs_buf *agbp, in xfs_agfl_reset() argument
2421 struct xfs_agf *agf = agbp->b_addr; in xfs_agfl_reset()
2434 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FLFIRST | XFS_AGF_FLLAST | in xfs_agfl_reset()
2489 struct xfs_buf *agbp = NULL; in xfs_alloc_fix_freelist() local
2500 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2529 if (!agbp) { in xfs_alloc_fix_freelist()
2530 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2541 xfs_agfl_reset(tp, agbp, pag); in xfs_alloc_fix_freelist()
2579 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2589 targs.agbp = agbp; in xfs_alloc_fix_freelist()
2623 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2630 args->agbp = agbp; in xfs_alloc_fix_freelist()
2636 if (agbp) in xfs_alloc_fix_freelist()
2637 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2639 args->agbp = NULL; in xfs_alloc_fix_freelist()
2650 xfs_buf_t *agbp, /* buffer containing the agf structure */ in xfs_alloc_get_freelist() argument
2654 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_get_freelist()
2689 pag = agbp->b_pag; in xfs_alloc_get_freelist()
2702 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2775 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_alloc_put_freelist() argument
2781 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_put_freelist()
2796 pag = agbp->b_pag; in xfs_alloc_put_freelist()
2809 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2818 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
3094 if (!args->agbp) { in xfs_alloc_vextent()
3150 if (args->agbp) { in xfs_alloc_vextent()
3235 struct xfs_buf **agbp) in xfs_free_extent_fix_freelist() argument
3259 *agbp = args.agbp; in xfs_free_extent_fix_freelist()
3280 struct xfs_buf *agbp; in __xfs_free_extent() local
3294 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in __xfs_free_extent()
3297 agf = agbp->b_addr; in __xfs_free_extent()
3310 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3320 xfs_trans_brelse(tp, agbp); in __xfs_free_extent()