Lines Matching refs:agbp
284 agf = XFS_BUF_TO_AGF(args->agbp); in xfs_alloc_fix_minleft()
555 struct xfs_buf *agbp, in xfs_alloc_update_counters() argument
558 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters()
568 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters()
624 args->agbp, in xfs_alloc_ag_vextent()
670 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
728 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
731 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_exact()
897 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1008 ASSERT(ltbno + ltlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1026 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1054 bno_cur_lt = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near()
1218 ASSERT(ltnew + rlen <= be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length)); in xfs_alloc_ag_vextent_near()
1269 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1420 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1432 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_size()
1483 (be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_flcount) in xfs_alloc_ag_vextent_small()
1485 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1503 be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_small()
1548 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_free_ag_extent() argument
1573 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1633 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1772 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1850 xfs_buf_t *agbp; /* agf buffer pointer */ in xfs_alloc_fix_freelist() local
1869 &agbp))) in xfs_alloc_fix_freelist()
1874 args->agbp = NULL; in xfs_alloc_fix_freelist()
1878 agbp = NULL; in xfs_alloc_fix_freelist()
1888 args->agbp = NULL; in xfs_alloc_fix_freelist()
1903 if (agbp) in xfs_alloc_fix_freelist()
1904 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1905 args->agbp = NULL; in xfs_alloc_fix_freelist()
1914 if (agbp == NULL) { in xfs_alloc_fix_freelist()
1916 &agbp))) in xfs_alloc_fix_freelist()
1918 if (agbp == NULL) { in xfs_alloc_fix_freelist()
1921 args->agbp = NULL; in xfs_alloc_fix_freelist()
1928 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_fix_freelist()
1944 xfs_trans_brelse(tp, agbp); in xfs_alloc_fix_freelist()
1945 args->agbp = NULL; in xfs_alloc_fix_freelist()
1955 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
1958 if ((error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1))) in xfs_alloc_fix_freelist()
1969 targs.agbp = agbp; in xfs_alloc_fix_freelist()
1998 args->agbp = NULL; in xfs_alloc_fix_freelist()
2005 error = xfs_alloc_put_freelist(tp, agbp, in xfs_alloc_fix_freelist()
2012 args->agbp = agbp; in xfs_alloc_fix_freelist()
2023 xfs_buf_t *agbp, /* buffer containing the agf structure */ in xfs_alloc_get_freelist() argument
2039 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_get_freelist()
2076 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_get_freelist()
2144 xfs_buf_t *agbp, /* buffer for a.g. freelist header */ in xfs_alloc_put_freelist() argument
2158 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_put_freelist()
2181 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2190 xfs_alloc_log_agf(tp, agbp, logflags); in xfs_alloc_put_freelist()
2436 if (!args->agbp) { in xfs_alloc_vextent()
2506 if (args->agbp) { in xfs_alloc_vextent()
2628 be32_to_cpu(XFS_BUF_TO_AGF(args.agbp)->agf_length)) { in xfs_free_extent()
2633 error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); in xfs_free_extent()