Lines Matching refs:agno

233 	xfs_agnumber_t		agno = cur->bc_ag.agno;  in xfs_alloc_get_rec()  local
248 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
252 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
260 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec()
692 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument
698 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
701 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
780 args->agbp, args->agno, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
790 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
793 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
1067 xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
1074 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1093 error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
1170 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent()
1182 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent()
1221 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact()
1281 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_exact()
1678 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_size()
1841 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_size()
1881 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
1905 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1913 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1983 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); in xfs_free_ag_extent()
2175 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2180 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2331 xfs_agnumber_t agno, in xfs_free_agfl_block() argument
2339 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2345 XFS_AGB_TO_DADDR(tp->t_mountp, agno, agbno), in xfs_free_agfl_block()
2455 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument
2467 new->xefi_startblock = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block()
2472 trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1); in xfs_defer_agfl_block()
2500 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2530 error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp); in xfs_alloc_fix_freelist()
2584 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2590 targs.agno = args->agno; in xfs_alloc_fix_freelist()
2594 error = xfs_alloc_read_agfl(mp, tp, targs.agno, &agflbp); in xfs_alloc_fix_freelist()
2757 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_pagf_init() argument
2763 error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp); in xfs_alloc_pagf_init()
2955 xfs_agnumber_t agno, /* allocation group number */ in xfs_read_agf() argument
2961 trace_xfs_read_agf(mp, agno); in xfs_read_agf()
2963 ASSERT(agno != NULLAGNUMBER); in xfs_read_agf()
2965 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), in xfs_read_agf()
2982 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agf() argument
2990 trace_xfs_alloc_read_agf(mp, agno); in xfs_alloc_read_agf()
2995 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agf()
2996 error = xfs_read_agf(mp, tp, agno, in xfs_alloc_read_agf()
3087 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
3088 args->pag = xfs_perag_get(mp, args->agno); in xfs_alloc_vextent()
3125 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
3133 args->agno = sagno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
3141 args->pag = xfs_perag_get(mp, args->agno); in xfs_alloc_vextent()
3161 if (args->agno == sagno && in xfs_alloc_vextent()
3171 if (++(args->agno) == mp->m_sb.sb_agcount) { in xfs_alloc_vextent()
3173 args->agno = sagno; in xfs_alloc_vextent()
3175 args->agno = 0; in xfs_alloc_vextent()
3181 if (args->agno == sagno) { in xfs_alloc_vextent()
3198 if (args->agno == sagno) in xfs_alloc_vextent()
3202 mp->m_agfrotor = (args->agno * rotorstep + 1) % in xfs_alloc_vextent()
3213 args->fsbno = XFS_AGB_TO_FSB(mp, args->agno, args->agbno); in xfs_alloc_vextent()
3234 xfs_agnumber_t agno, in xfs_free_extent_fix_freelist() argument
3243 args.agno = agno; in xfs_free_extent_fix_freelist()
3249 if (args.agno >= args.mp->m_sb.sb_agcount) in xfs_free_extent_fix_freelist()
3252 args.pag = xfs_perag_get(args.mp, args.agno); in xfs_free_extent_fix_freelist()
3281 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent() local
3294 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in __xfs_free_extent()
3310 error = xfs_free_ag_extent(tp, agbp, agno, agbno, len, oinfo, type); in __xfs_free_extent()
3316 xfs_extent_busy_insert(tp, agno, agbno, len, busy_flags); in __xfs_free_extent()