Lines Matching refs:agbp

770 	struct xfs_buf		*agbp,
773 struct xfs_agf *agf = agbp->b_addr;
775 agbp->b_pag->pagf_freeblks += len;
780 xfs_buf_mark_corrupt(agbp);
784 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS);
834 args->agbp, args->pag, XFS_BTNUM_CNT);
844 args->agbp, args->pag, XFS_BTNUM_BNO);
847 args->agbp, args->pag, XFS_BTNUM_BNO);
978 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr;
1082 struct xfs_agf *agf = args->agbp->b_addr;
1114 error = xfs_alloc_get_freelist(args->pag, args->tp, args->agbp,
1147 error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1,
1185 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr;
1202 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1262 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1657 struct xfs_agf *agf = args->agbp->b_addr;
1675 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1855 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1895 struct xfs_buf *agbp,
1915 struct xfs_perag *pag = agbp->b_pag;
1921 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo);
1929 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_BNO);
1999 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_CNT);
2183 error = xfs_alloc_update_counters(tp, agbp, len);
2184 xfs_ag_resv_free_extent(agbp->b_pag, type, tp, len);
2371 struct xfs_buf *agbp,
2377 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo,
2455 struct xfs_buf *agbp,
2459 struct xfs_agf *agf = agbp->b_addr;
2472 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FLFIRST | XFS_AGF_FLLAST |
2592 struct xfs_buf *agbp,
2600 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, agbp,
2637 struct xfs_buf *agbp = NULL;
2648 error = xfs_alloc_read_agf(pag, tp, alloc_flags, &agbp);
2678 if (!agbp) {
2679 error = xfs_alloc_read_agf(pag, tp, alloc_flags, &agbp);
2690 xfs_agfl_reset(tp, agbp, pag);
2701 error = xfs_exact_minlen_extent_available(args, agbp, &stat);
2738 error = xfs_alloc_get_freelist(pag, tp, agbp, &bno, 0);
2750 targs.agbp = agbp;
2781 error = xfs_rmap_alloc(tp, agbp, pag,
2786 error = xfs_alloc_update_counters(tp, agbp,
2795 error = xfs_alloc_put_freelist(pag, tp, agbp,
2802 args->agbp = agbp;
2808 if (agbp)
2809 xfs_trans_brelse(tp, agbp);
2811 args->agbp = NULL;
2823 struct xfs_buf *agbp,
2827 struct xfs_agf *agf = agbp->b_addr;
2874 xfs_alloc_log_agf(tp, agbp, logflags);
2929 struct xfs_buf *agbp,
2935 struct xfs_agf *agf = agbp->b_addr;
2963 xfs_alloc_log_agf(tp, agbp, logflags);
2972 xfs_alloc_log_agf(tp, agbp, logflags);
3341 args->agbp = NULL;
3350 if (!args->agbp) {
3393 if (args->agbp &&
3419 error = xfs_rmap_alloc(args->tp, args->agbp, args->pag,
3426 error = xfs_alloc_update_counters(args->tp, args->agbp,
3484 if (!error && args->agbp)
3530 if (!args->agbp) {
3553 if (args->agbp)
3696 if (!error && args->agbp)
3738 if (!error && args->agbp)
3749 struct xfs_buf **agbp)
3771 *agbp = args.agbp;
3791 struct xfs_buf *agbp;
3803 error = xfs_free_extent_fix_freelist(tp, pag, &agbp);
3806 agf = agbp->b_addr;
3819 error = xfs_free_ag_extent(tp, agbp, pag->pag_agno, agbno, len, oinfo,
3830 xfs_trans_brelse(tp, agbp);