Lines Matching refs:agbp
727 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
730 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters()
732 agbp->b_pag->pagf_freeblks += len; in xfs_alloc_update_counters()
737 xfs_buf_mark_corrupt(agbp); in xfs_alloc_update_counters()
741 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
793 args->agbp, args->pag, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
803 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
806 args->agbp, args->pag, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
938 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish()
1042 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small()
1074 error = xfs_alloc_get_freelist(args->pag, args->tp, args->agbp, in xfs_alloc_ag_vextent_small()
1107 error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1184 error = xfs_rmap_alloc(args->tp, args->agbp, args->pag, in xfs_alloc_ag_vextent()
1191 error = xfs_alloc_update_counters(args->tp, args->agbp, in xfs_alloc_ag_vextent()
1217 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_exact()
1234 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1294 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1675 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_size()
1691 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1853 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1893 struct xfs_buf *agbp, in xfs_free_ag_extent() argument
1913 struct xfs_perag *pag = agbp->b_pag; in xfs_free_ag_extent()
1919 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo); in xfs_free_ag_extent()
1927 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1997 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_CNT); in xfs_free_ag_extent()
2181 error = xfs_alloc_update_counters(tp, agbp, len); in xfs_free_ag_extent()
2182 xfs_ag_resv_free_extent(agbp->b_pag, type, tp, len); in xfs_free_ag_extent()
2348 struct xfs_buf *agbp, in xfs_free_agfl_block() argument
2354 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2432 struct xfs_buf *agbp, in xfs_agfl_reset() argument
2436 struct xfs_agf *agf = agbp->b_addr; in xfs_agfl_reset()
2449 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FLFIRST | XFS_AGF_FLLAST | in xfs_agfl_reset()
2553 struct xfs_buf *agbp, in xfs_exact_minlen_extent_available() argument
2561 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, agbp, in xfs_exact_minlen_extent_available()
2598 struct xfs_buf *agbp = NULL; in xfs_alloc_fix_freelist() local
2609 error = xfs_alloc_read_agf(pag, tp, flags, &agbp); in xfs_alloc_fix_freelist()
2638 if (!agbp) { in xfs_alloc_fix_freelist()
2639 error = xfs_alloc_read_agf(pag, tp, flags, &agbp); in xfs_alloc_fix_freelist()
2650 xfs_agfl_reset(tp, agbp, pag); in xfs_alloc_fix_freelist()
2661 error = xfs_exact_minlen_extent_available(args, agbp, &stat); in xfs_alloc_fix_freelist()
2697 error = xfs_alloc_get_freelist(pag, tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2707 targs.agbp = agbp; in xfs_alloc_fix_freelist()
2741 error = xfs_alloc_put_freelist(pag, tp, agbp, in xfs_alloc_fix_freelist()
2748 args->agbp = agbp; in xfs_alloc_fix_freelist()
2754 if (agbp) in xfs_alloc_fix_freelist()
2755 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2757 args->agbp = NULL; in xfs_alloc_fix_freelist()
2769 struct xfs_buf *agbp, in xfs_alloc_get_freelist() argument
2773 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_get_freelist()
2817 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2872 struct xfs_buf *agbp, in xfs_alloc_put_freelist() argument
2878 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_put_freelist()
2906 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2915 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
3209 if (!args->agbp) { in xfs_alloc_vextent()
3265 if (args->agbp) { in xfs_alloc_vextent()
3350 struct xfs_buf **agbp) in xfs_free_extent_fix_freelist() argument
3372 *agbp = args.agbp; in xfs_free_extent_fix_freelist()
3391 struct xfs_buf *agbp; in __xfs_free_extent() local
3407 error = xfs_free_extent_fix_freelist(tp, pag, &agbp); in __xfs_free_extent()
3410 agf = agbp->b_addr; in __xfs_free_extent()
3423 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3434 xfs_trans_brelse(tp, agbp); in __xfs_free_extent()