Home
last modified time | relevance | path

Searched refs:agf (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.15/fs/xfs/scrub/
Dagheader_repair.c185 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() local
187 memcpy(old_agf, agf, sizeof(*old_agf)); in xrep_agf_init_header()
188 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header()
189 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xrep_agf_init_header()
190 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xrep_agf_init_header()
191 agf->agf_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agf_init_header()
192 agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, in xrep_agf_init_header()
194 agf->agf_flfirst = old_agf->agf_flfirst; in xrep_agf_init_header()
195 agf->agf_fllast = old_agf->agf_fllast; in xrep_agf_init_header()
196 agf->agf_flcount = old_agf->agf_flcount; in xrep_agf_init_header()
[all …]
Dagheader.c374 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() local
385 if (blocks != be32_to_cpu(agf->agf_freeblks)) in xchk_agf_xref_freeblks()
394 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() local
408 if (agf->agf_freeblks != cpu_to_be32(0)) in xchk_agf_xref_cntbt()
417 if (!have || blocks != be32_to_cpu(agf->agf_longest)) in xchk_agf_xref_cntbt()
426 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() local
442 if (blocks != be32_to_cpu(agf->agf_rmap_blocks)) in xchk_agf_xref_btreeblks()
467 if (btreeblks != be32_to_cpu(agf->agf_btreeblks)) in xchk_agf_xref_btreeblks()
476 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() local
486 if (blocks != be32_to_cpu(agf->agf_refcount_blocks)) in xchk_agf_xref_refcblks()
[all …]
Drepair.c215 struct xfs_agf *agf = bp->b_addr; in xrep_calc_ag_resblks() local
217 aglen = be32_to_cpu(agf->agf_length); in xrep_calc_ag_resblks()
218 freelen = be32_to_cpu(agf->agf_freeblks); in xrep_calc_ag_resblks()
661 struct xfs_agf *agf; member
702 error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp, in xrep_findroot_block()
887 ri.agf = agf_bp->b_addr; in xrep_find_ag_btree_roots()
Dbmap.c556 struct xfs_buf *agf; in xchk_bmap_check_ag_rmaps() local
559 error = xfs_alloc_read_agf(sc->mp, sc->tp, pag->pag_agno, 0, &agf); in xchk_bmap_check_ag_rmaps()
563 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, pag); in xchk_bmap_check_ag_rmaps()
572 xfs_trans_brelse(sc->tp, agf); in xchk_bmap_check_ag_rmaps()
/Linux-v5.15/fs/xfs/libxfs/
Dxfs_ag.c519 struct xfs_agf *agf = bp->b_addr; in xfs_agfblock_init() local
522 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xfs_agfblock_init()
523 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xfs_agfblock_init()
524 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init()
525 agf->agf_length = cpu_to_be32(id->agsize); in xfs_agfblock_init()
526 agf->agf_roots[XFS_BTNUM_BNOi] = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_agfblock_init()
527 agf->agf_roots[XFS_BTNUM_CNTi] = cpu_to_be32(XFS_CNT_BLOCK(mp)); in xfs_agfblock_init()
528 agf->agf_levels[XFS_BTNUM_BNOi] = cpu_to_be32(1); in xfs_agfblock_init()
529 agf->agf_levels[XFS_BTNUM_CNTi] = cpu_to_be32(1); in xfs_agfblock_init()
531 agf->agf_roots[XFS_BTNUM_RMAPi] = in xfs_agfblock_init()
[all …]
Dxfs_alloc.c716 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters() local
719 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters()
721 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters()
722 be32_to_cpu(agf->agf_length))) { in xfs_alloc_update_counters()
924 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish() local
930 ASSERT(acur->rec_bno + acur->rec_len <= be32_to_cpu(agf->agf_length)); in xfs_alloc_cur_finish()
1028 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small() local
1057 be32_to_cpu(agf->agf_flcount) <= args->minleft) in xfs_alloc_ag_vextent_small()
1081 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small()
1202 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_exact() local
[all …]
Dxfs_refcount_btree.c39 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_set_root() local
44 agf->agf_refcount_root = ptr->s; in xfs_refcountbt_set_root()
45 be32_add_cpu(&agf->agf_refcount_level, inc); in xfs_refcountbt_set_root()
60 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_alloc_block() local
87 be32_add_cpu(&agf->agf_refcount_blocks, 1); in xfs_refcountbt_alloc_block()
104 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_free_block() local
110 be32_add_cpu(&agf->agf_refcount_blocks, -1); in xfs_refcountbt_free_block()
171 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_refcountbt_init_ptr_from_cur() local
173 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
175 ptr->s = agf->agf_refcount_root; in xfs_refcountbt_init_ptr_from_cur()
[all …]
Dxfs_rmap_btree.c65 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() local
70 agf->agf_roots[btnum] = ptr->s; in xfs_rmapbt_set_root()
71 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_rmapbt_set_root()
85 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block() local
105 be32_add_cpu(&agf->agf_rmap_blocks, 1); in xfs_rmapbt_alloc_block()
120 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block() local
128 be32_add_cpu(&agf->agf_rmap_blocks, -1); in xfs_rmapbt_free_block()
213 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_rmapbt_init_ptr_from_cur() local
215 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur()
217 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_rmapbt_init_ptr_from_cur()
[all …]
Dxfs_alloc_btree.c39 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root() local
44 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root()
45 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_allocbt_set_root()
112 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_update_lastrec() local
131 be32_to_cpu(agf->agf_longest)) in xfs_allocbt_update_lastrec()
156 agf->agf_longest = len; in xfs_allocbt_update_lastrec()
223 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_init_ptr_from_cur() local
225 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur()
227 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_allocbt_init_ptr_from_cur()
518 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_init_cursor() local
[all …]
Dxfs_alloc.h239 int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
/Linux-v5.15/fs/xfs/
Dxfs_discard.c34 struct xfs_agf *agf; in xfs_trim_extents() local
51 agf = agbp->b_addr; in xfs_trim_extents()
58 error = xfs_alloc_lookup_ge(cur, 0, be32_to_cpu(agf->agf_longest), &i); in xfs_trim_extents()
79 ASSERT(flen <= be32_to_cpu(agf->agf_longest)); in xfs_trim_extents()
Dxfs_trace.h1690 TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags,
1692 TP_ARGS(mp, agf, flags, caller_ip),
1711 __entry->agno = be32_to_cpu(agf->agf_seqno),
1713 __entry->length = be32_to_cpu(agf->agf_length),
1714 __entry->bno_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_BNO]),
1715 __entry->cnt_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_CNT]),
1717 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]),
1719 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]),
1720 __entry->flfirst = be32_to_cpu(agf->agf_flfirst),
1721 __entry->fllast = be32_to_cpu(agf->agf_fllast),
[all …]
/Linux-v5.15/arch/s390/tools/
Dopcodes.txt750 e318 agf RXY_RRRD