Lines Matching refs:agno
219 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_alloc_get_rec() local
234 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
238 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
246 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec()
658 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument
664 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
667 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
750 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
763 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent()
801 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact()
858 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_exact()
1046 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_near()
1171 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1200 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1411 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_size()
1553 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_size()
1623 xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
1630 args->agno, fbno, 0); in xfs_alloc_ag_vextent_small()
1652 error = xfs_rmap_free(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent_small()
1699 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
1724 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1732 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1791 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
1929 pag = xfs_perag_get(mp, agno); in xfs_free_ag_extent()
1939 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
1944 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2080 xfs_agnumber_t agno, in xfs_free_agfl_block() argument
2088 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2093 bp = xfs_btree_get_bufs(tp->t_mountp, tp, agno, agbno, 0); in xfs_free_agfl_block()
2202 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument
2213 new->xefi_startblock = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block()
2218 trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1); in xfs_defer_agfl_block()
2243 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2274 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2328 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2334 targs.agno = args->agno; in xfs_alloc_fix_freelist()
2338 error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp); in xfs_alloc_fix_freelist()
2503 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_pagf_init() argument
2509 if ((error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp))) in xfs_alloc_pagf_init()
2703 xfs_agnumber_t agno, /* allocation group number */ in xfs_read_agf() argument
2709 trace_xfs_read_agf(mp, agno); in xfs_read_agf()
2711 ASSERT(agno != NULLAGNUMBER); in xfs_read_agf()
2714 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), in xfs_read_agf()
2733 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agf() argument
2741 trace_xfs_alloc_read_agf(mp, agno); in xfs_alloc_read_agf()
2743 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agf()
2744 error = xfs_read_agf(mp, tp, agno, in xfs_alloc_read_agf()
2754 pag = xfs_perag_get(mp, agno); in xfs_alloc_read_agf()
2838 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
2839 args->pag = xfs_perag_get(mp, args->agno); in xfs_alloc_vextent()
2876 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
2884 args->agno = sagno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
2892 args->pag = xfs_perag_get(mp, args->agno); in xfs_alloc_vextent()
2912 if (args->agno == sagno && in xfs_alloc_vextent()
2922 if (++(args->agno) == mp->m_sb.sb_agcount) { in xfs_alloc_vextent()
2924 args->agno = sagno; in xfs_alloc_vextent()
2926 args->agno = 0; in xfs_alloc_vextent()
2932 if (args->agno == sagno) { in xfs_alloc_vextent()
2949 if (args->agno == sagno) in xfs_alloc_vextent()
2953 mp->m_agfrotor = (args->agno * rotorstep + 1) % in xfs_alloc_vextent()
2964 args->fsbno = XFS_AGB_TO_FSB(mp, args->agno, args->agbno); in xfs_alloc_vextent()
2992 xfs_agnumber_t agno, in xfs_free_extent_fix_freelist() argument
3001 args.agno = agno; in xfs_free_extent_fix_freelist()
3007 if (args.agno >= args.mp->m_sb.sb_agcount) in xfs_free_extent_fix_freelist()
3010 args.pag = xfs_perag_get(args.mp, args.agno); in xfs_free_extent_fix_freelist()
3039 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent() local
3051 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in __xfs_free_extent()
3062 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3068 xfs_extent_busy_insert(tp, agno, agbno, len, busy_flags); in __xfs_free_extent()