Lines Matching refs:agbp

298 	agf = XFS_BUF_TO_AGF(args->agbp);  in xfs_alloc_fix_minleft()
572 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
575 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters()
585 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
641 args->agbp, in xfs_alloc_ag_vextent()
687 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
745 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
748 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_exact()
929 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1042 ASSERT(ltbno + ltlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1060 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1088 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1252 ASSERT(ltnew + rlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1304 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1455 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1467 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_size()
1518 (be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_flcount) in xfs_alloc_ag_vextent_small()
1520 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1538 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_small()
1583 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_free_ag_extent() argument
1608 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1668 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1807 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1938 struct xfs_buf *agbp = NULL; in xfs_alloc_fix_freelist() local
1946 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
1975 if (!agbp) { in xfs_alloc_fix_freelist()
1976 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
1979 if (!agbp) { in xfs_alloc_fix_freelist()
2010 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2013 error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1); in xfs_alloc_fix_freelist()
2023 targs.agbp = agbp; in xfs_alloc_fix_freelist()
2056 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2063 args->agbp = agbp; in xfs_alloc_fix_freelist()
2069 if (agbp) in xfs_alloc_fix_freelist()
2070 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
2072 args->agbp = NULL; in xfs_alloc_fix_freelist()
2083 xfs_buf_t *agbp, /* buffer containing the agf structure */ in xfs_alloc_get_freelist() argument
2099 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_get_freelist()
2136 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2204 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_alloc_put_freelist() argument
2218 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_put_freelist()
2241 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2250 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2501 if (!args->agbp) { in xfs_alloc_vextent()
2571 if (args->agbp) { in xfs_alloc_vextent()
2701 be32_to_cpu(XFS_BUF_TO_AGF(args.agbp)->agf_length)) { in xfs_free_extent()
2706 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); in xfs_free_extent()