Lines Matching refs:agf

240 	xfs_agf_t	*agf;		/* a.g. freelist header */  in xfs_alloc_fix_minleft()  local
245 agf = XFS_BUF_TO_AGF(args->agbp); in xfs_alloc_fix_minleft()
246 diff = INT_GET(agf->agf_freeblks, ARCH_CONVERT) in xfs_alloc_fix_minleft()
247 + INT_GET(agf->agf_flcount, ARCH_CONVERT) in xfs_alloc_fix_minleft()
498 xfs_agf_t *agf, /* new agf value */ in xfs_alloc_trace_modagf() argument
508 (void *)(__psunsigned_t)INT_GET(agf->agf_seqno, ARCH_CONVERT), in xfs_alloc_trace_modagf()
509 (void *)(__psunsigned_t)INT_GET(agf->agf_length, ARCH_CONVERT), in xfs_alloc_trace_modagf()
510 (void *)(__psunsigned_t)INT_GET(agf->agf_roots[XFS_BTNUM_BNO], in xfs_alloc_trace_modagf()
512 (void *)(__psunsigned_t)INT_GET(agf->agf_roots[XFS_BTNUM_CNT], in xfs_alloc_trace_modagf()
514 (void *)(__psunsigned_t)INT_GET(agf->agf_levels[XFS_BTNUM_BNO], in xfs_alloc_trace_modagf()
516 (void *)(__psunsigned_t)INT_GET(agf->agf_levels[XFS_BTNUM_CNT], in xfs_alloc_trace_modagf()
518 (void *)(__psunsigned_t)INT_GET(agf->agf_flfirst, ARCH_CONVERT), in xfs_alloc_trace_modagf()
519 (void *)(__psunsigned_t)INT_GET(agf->agf_fllast, ARCH_CONVERT), in xfs_alloc_trace_modagf()
520 (void *)(__psunsigned_t)INT_GET(agf->agf_flcount, ARCH_CONVERT), in xfs_alloc_trace_modagf()
521 (void *)(__psunsigned_t)INT_GET(agf->agf_freeblks, ARCH_CONVERT), in xfs_alloc_trace_modagf()
522 (void *)(__psunsigned_t)INT_GET(agf->agf_longest, ARCH_CONVERT)); in xfs_alloc_trace_modagf()
603 xfs_agf_t *agf; /* allocation group freelist header */ in xfs_alloc_ag_vextent() local
614 agf = XFS_BUF_TO_AGF(args->agbp); in xfs_alloc_ag_vextent()
615 INT_MOD(agf->agf_freeblks, ARCH_CONVERT, -(args->len)); in xfs_alloc_ag_vextent()
619 ASSERT(INT_GET(agf->agf_freeblks, ARCH_CONVERT) in xfs_alloc_ag_vextent()
620 <= INT_GET(agf->agf_length, ARCH_CONVERT)); in xfs_alloc_ag_vextent()
621 TRACE_MODAGF(NULL, agf, XFS_AGF_FREEBLKS); in xfs_alloc_ag_vextent()
1755 xfs_agf_t *agf; in xfs_free_ag_extent() local
1758 agf = XFS_BUF_TO_AGF(agbp); in xfs_free_ag_extent()
1760 INT_MOD(agf->agf_freeblks, ARCH_CONVERT, len); in xfs_free_ag_extent()
1764 INT_GET(agf->agf_freeblks, ARCH_CONVERT) in xfs_free_ag_extent()
1765 <= INT_GET(agf->agf_length, ARCH_CONVERT), in xfs_free_ag_extent()
1767 TRACE_MODAGF(NULL, agf, XFS_AGF_FREEBLKS); in xfs_free_ag_extent()
1839 xfs_agf_t *agf; /* a.g. freespace structure pointer */ in xfs_alloc_fix_freelist() local
1910 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_fix_freelist()
1911 need = XFS_MIN_FREELIST(agf, mp); in xfs_alloc_fix_freelist()
1912 delta = need > INT_GET(agf->agf_flcount, ARCH_CONVERT) ? in xfs_alloc_fix_freelist()
1913 (need - INT_GET(agf->agf_flcount, ARCH_CONVERT)) : 0; in xfs_alloc_fix_freelist()
1917 longest = INT_GET(agf->agf_longest, ARCH_CONVERT); in xfs_alloc_fix_freelist()
1919 (INT_GET(agf->agf_flcount, ARCH_CONVERT) > 0 || longest > 0); in xfs_alloc_fix_freelist()
1922 (int)(INT_GET(agf->agf_freeblks, ARCH_CONVERT) + in xfs_alloc_fix_freelist()
1923 INT_GET(agf->agf_flcount, ARCH_CONVERT) - need - args->total) < in xfs_alloc_fix_freelist()
1932 while (INT_GET(agf->agf_flcount, ARCH_CONVERT) > need) { in xfs_alloc_fix_freelist()
1959 while (INT_GET(agf->agf_flcount, ARCH_CONVERT) < need) { in xfs_alloc_fix_freelist()
1961 targs.maxlen = need - INT_GET(agf->agf_flcount, ARCH_CONVERT); in xfs_alloc_fix_freelist()
1997 xfs_agf_t *agf; /* a.g. freespace structure */ in xfs_alloc_get_freelist() local
2008 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_get_freelist()
2012 if (INT_ISZERO(agf->agf_flcount, ARCH_CONVERT)) { in xfs_alloc_get_freelist()
2021 INT_GET(agf->agf_seqno, ARCH_CONVERT), &agflbp))) in xfs_alloc_get_freelist()
2027 bno = INT_GET(agfl->agfl_bno[INT_GET(agf->agf_flfirst, ARCH_CONVERT)], ARCH_CONVERT); in xfs_alloc_get_freelist()
2028 INT_MOD(agf->agf_flfirst, ARCH_CONVERT, 1); in xfs_alloc_get_freelist()
2030 if (INT_GET(agf->agf_flfirst, ARCH_CONVERT) == XFS_AGFL_SIZE(mp)) in xfs_alloc_get_freelist()
2031 INT_ZERO(agf->agf_flfirst, ARCH_CONVERT); in xfs_alloc_get_freelist()
2032 pag = &mp->m_perag[INT_GET(agf->agf_seqno, ARCH_CONVERT)]; in xfs_alloc_get_freelist()
2033 INT_MOD(agf->agf_flcount, ARCH_CONVERT, -1); in xfs_alloc_get_freelist()
2036 TRACE_MODAGF(NULL, agf, XFS_AGF_FLFIRST | XFS_AGF_FLCOUNT); in xfs_alloc_get_freelist()
2048 xfs_alloc_search_busy(tp, INT_GET(agf->agf_seqno, ARCH_CONVERT), bno, 1); in xfs_alloc_get_freelist()
2112 xfs_agf_t *agf; /* a.g. freespace structure */ in xfs_alloc_put_freelist() local
2122 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_put_freelist()
2126 INT_GET(agf->agf_seqno, ARCH_CONVERT), &agflbp))) in xfs_alloc_put_freelist()
2129 INT_MOD(agf->agf_fllast, ARCH_CONVERT, 1); in xfs_alloc_put_freelist()
2130 if (INT_GET(agf->agf_fllast, ARCH_CONVERT) == XFS_AGFL_SIZE(mp)) in xfs_alloc_put_freelist()
2131 INT_ZERO(agf->agf_fllast, ARCH_CONVERT); in xfs_alloc_put_freelist()
2132 pag = &mp->m_perag[INT_GET(agf->agf_seqno, ARCH_CONVERT)]; in xfs_alloc_put_freelist()
2133 INT_MOD(agf->agf_flcount, ARCH_CONVERT, 1); in xfs_alloc_put_freelist()
2136 ASSERT(INT_GET(agf->agf_flcount, ARCH_CONVERT) <= XFS_AGFL_SIZE(mp)); in xfs_alloc_put_freelist()
2137 blockp = &agfl->agfl_bno[INT_GET(agf->agf_fllast, ARCH_CONVERT)]; in xfs_alloc_put_freelist()
2139 TRACE_MODAGF(NULL, agf, XFS_AGF_FLLAST | XFS_AGF_FLCOUNT); in xfs_alloc_put_freelist()
2159 xfs_agf_t *agf; /* ag freelist header */ in xfs_alloc_read_agf() local
2182 agf = XFS_BUF_TO_AGF(bp); in xfs_alloc_read_agf()
2184 INT_GET(agf->agf_magicnum, ARCH_CONVERT) == XFS_AGF_MAGIC && in xfs_alloc_read_agf()
2186 INT_GET(agf->agf_versionnum, ARCH_CONVERT)) && in xfs_alloc_read_agf()
2187 INT_GET(agf->agf_freeblks, ARCH_CONVERT) <= in xfs_alloc_read_agf()
2188 INT_GET(agf->agf_length, ARCH_CONVERT) && in xfs_alloc_read_agf()
2189 INT_GET(agf->agf_flfirst, ARCH_CONVERT) < XFS_AGFL_SIZE(mp) && in xfs_alloc_read_agf()
2190 INT_GET(agf->agf_fllast, ARCH_CONVERT) < XFS_AGFL_SIZE(mp) && in xfs_alloc_read_agf()
2191 INT_GET(agf->agf_flcount, ARCH_CONVERT) <= XFS_AGFL_SIZE(mp); in xfs_alloc_read_agf()
2195 XFS_ERRLEVEL_LOW, mp, agf); in xfs_alloc_read_agf()
2201 pag->pagf_freeblks = INT_GET(agf->agf_freeblks, ARCH_CONVERT); in xfs_alloc_read_agf()
2202 pag->pagf_flcount = INT_GET(agf->agf_flcount, ARCH_CONVERT); in xfs_alloc_read_agf()
2203 pag->pagf_longest = INT_GET(agf->agf_longest, ARCH_CONVERT); in xfs_alloc_read_agf()
2205 INT_GET(agf->agf_levels[XFS_BTNUM_BNOi], ARCH_CONVERT); in xfs_alloc_read_agf()
2207 INT_GET(agf->agf_levels[XFS_BTNUM_CNTi], ARCH_CONVERT); in xfs_alloc_read_agf()
2215 ASSERT(pag->pagf_freeblks == INT_GET(agf->agf_freeblks, ARCH_CONVERT)); in xfs_alloc_read_agf()
2216 ASSERT(pag->pagf_flcount == INT_GET(agf->agf_flcount, ARCH_CONVERT)); in xfs_alloc_read_agf()
2217 ASSERT(pag->pagf_longest == INT_GET(agf->agf_longest, ARCH_CONVERT)); in xfs_alloc_read_agf()
2219 INT_GET(agf->agf_levels[XFS_BTNUM_BNOi], ARCH_CONVERT)); in xfs_alloc_read_agf()
2221 INT_GET(agf->agf_levels[XFS_BTNUM_CNTi], ARCH_CONVERT)); in xfs_alloc_read_agf()
2450 xfs_agf_t *agf; /* a.g. freespace header */ in xfs_free_extent() local
2469 agf = XFS_BUF_TO_AGF(args.agbp); in xfs_free_extent()
2470 ASSERT(args.agbno + len <= INT_GET(agf->agf_length, ARCH_CONVERT)); in xfs_free_extent()