• Home
  • Raw
  • Download

Lines Matching refs:agf

293 	xfs_agf_t	*agf;		/* a.g. freelist header */  in xfs_alloc_fix_minleft()  local
298 agf = XFS_BUF_TO_AGF(args->agbp); in xfs_alloc_fix_minleft()
299 diff = be32_to_cpu(agf->agf_freeblks) in xfs_alloc_fix_minleft()
575 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters() local
578 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters()
581 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters()
582 be32_to_cpu(agf->agf_length))) in xfs_alloc_update_counters()
1940 struct xfs_agf *agf) in xfs_agfl_needs_reset() argument
1942 uint32_t f = be32_to_cpu(agf->agf_flfirst); in xfs_agfl_needs_reset()
1943 uint32_t l = be32_to_cpu(agf->agf_fllast); in xfs_agfl_needs_reset()
1944 uint32_t c = be32_to_cpu(agf->agf_flcount); in xfs_agfl_needs_reset()
1993 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_agfl_reset() local
1996 trace_xfs_agfl_reset(mp, agf, 0, _RET_IP_); in xfs_agfl_reset()
2003 agf->agf_flfirst = 0; in xfs_agfl_reset()
2004 agf->agf_fllast = cpu_to_be32(XFS_AGFL_SIZE(mp) - 1); in xfs_agfl_reset()
2005 agf->agf_flcount = 0; in xfs_agfl_reset()
2178 xfs_agf_t *agf; /* a.g. freespace structure */ in xfs_alloc_get_freelist() local
2190 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_get_freelist()
2191 if (!agf->agf_flcount) { in xfs_alloc_get_freelist()
2198 error = xfs_alloc_read_agfl(mp, tp, be32_to_cpu(agf->agf_seqno), in xfs_alloc_get_freelist()
2208 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2209 be32_add_cpu(&agf->agf_flfirst, 1); in xfs_alloc_get_freelist()
2211 if (be32_to_cpu(agf->agf_flfirst) == XFS_AGFL_SIZE(mp)) in xfs_alloc_get_freelist()
2212 agf->agf_flfirst = 0; in xfs_alloc_get_freelist()
2214 pag = xfs_perag_get(mp, be32_to_cpu(agf->agf_seqno)); in xfs_alloc_get_freelist()
2216 be32_add_cpu(&agf->agf_flcount, -1); in xfs_alloc_get_freelist()
2223 be32_add_cpu(&agf->agf_btreeblks, 1); in xfs_alloc_get_freelist()
2301 xfs_agf_t *agf; /* a.g. freespace structure */ in xfs_alloc_put_freelist() local
2310 agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_put_freelist()
2314 be32_to_cpu(agf->agf_seqno), &agflbp))) in xfs_alloc_put_freelist()
2316 be32_add_cpu(&agf->agf_fllast, 1); in xfs_alloc_put_freelist()
2317 if (be32_to_cpu(agf->agf_fllast) == XFS_AGFL_SIZE(mp)) in xfs_alloc_put_freelist()
2318 agf->agf_fllast = 0; in xfs_alloc_put_freelist()
2320 pag = xfs_perag_get(mp, be32_to_cpu(agf->agf_seqno)); in xfs_alloc_put_freelist()
2322 be32_add_cpu(&agf->agf_flcount, 1); in xfs_alloc_put_freelist()
2328 be32_add_cpu(&agf->agf_btreeblks, -1); in xfs_alloc_put_freelist()
2336 ASSERT(be32_to_cpu(agf->agf_flcount) <= XFS_AGFL_SIZE(mp)); in xfs_alloc_put_freelist()
2339 blockp = &agfl_bno[be32_to_cpu(agf->agf_fllast)]; in xfs_alloc_put_freelist()
2356 struct xfs_agf *agf = XFS_BUF_TO_AGF(bp); in xfs_agf_verify() local
2359 if (!uuid_equal(&agf->agf_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_agf_verify()
2366 if (!(agf->agf_magicnum == cpu_to_be32(XFS_AGF_MAGIC) && in xfs_agf_verify()
2367 XFS_AGF_GOOD_VERSION(be32_to_cpu(agf->agf_versionnum)) && in xfs_agf_verify()
2368 be32_to_cpu(agf->agf_freeblks) <= be32_to_cpu(agf->agf_length) && in xfs_agf_verify()
2369 be32_to_cpu(agf->agf_flfirst) < XFS_AGFL_SIZE(mp) && in xfs_agf_verify()
2370 be32_to_cpu(agf->agf_fllast) < XFS_AGFL_SIZE(mp) && in xfs_agf_verify()
2371 be32_to_cpu(agf->agf_flcount) <= XFS_AGFL_SIZE(mp))) in xfs_agf_verify()
2374 if (be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]) > XFS_BTREE_MAXLEVELS || in xfs_agf_verify()
2375 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]) > XFS_BTREE_MAXLEVELS) in xfs_agf_verify()
2384 if (bp->b_pag && be32_to_cpu(agf->agf_seqno) != bp->b_pag->pag_agno) in xfs_agf_verify()
2388 be32_to_cpu(agf->agf_btreeblks) > be32_to_cpu(agf->agf_length)) in xfs_agf_verify()
2482 struct xfs_agf *agf; /* ag freelist header */ in xfs_alloc_read_agf() local
2498 agf = XFS_BUF_TO_AGF(*bpp); in xfs_alloc_read_agf()
2501 pag->pagf_freeblks = be32_to_cpu(agf->agf_freeblks); in xfs_alloc_read_agf()
2502 pag->pagf_btreeblks = be32_to_cpu(agf->agf_btreeblks); in xfs_alloc_read_agf()
2503 pag->pagf_flcount = be32_to_cpu(agf->agf_flcount); in xfs_alloc_read_agf()
2504 pag->pagf_longest = be32_to_cpu(agf->agf_longest); in xfs_alloc_read_agf()
2506 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNOi]); in xfs_alloc_read_agf()
2508 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNTi]); in xfs_alloc_read_agf()
2513 pag->pagf_agflreset = xfs_agfl_needs_reset(mp, agf); in xfs_alloc_read_agf()
2517 ASSERT(pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks)); in xfs_alloc_read_agf()
2518 ASSERT(pag->pagf_btreeblks == be32_to_cpu(agf->agf_btreeblks)); in xfs_alloc_read_agf()
2519 ASSERT(pag->pagf_flcount == be32_to_cpu(agf->agf_flcount)); in xfs_alloc_read_agf()
2520 ASSERT(pag->pagf_longest == be32_to_cpu(agf->agf_longest)); in xfs_alloc_read_agf()
2522 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNOi])); in xfs_alloc_read_agf()
2524 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNTi])); in xfs_alloc_read_agf()