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