/Linux-v4.19/fs/xfs/scrub/ |
D | agheader_repair.c | 189 struct xfs_agf *agf = XFS_BUF_TO_AGF(agf_bp); in xrep_agf_init_header() local 191 memcpy(old_agf, agf, sizeof(*old_agf)); in xrep_agf_init_header() 192 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 193 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xrep_agf_init_header() 194 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xrep_agf_init_header() 195 agf->agf_seqno = cpu_to_be32(sc->sa.agno); in xrep_agf_init_header() 196 agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agf_init_header() 197 agf->agf_flfirst = old_agf->agf_flfirst; in xrep_agf_init_header() 198 agf->agf_fllast = old_agf->agf_fllast; in xrep_agf_init_header() 199 agf->agf_flcount = old_agf->agf_flcount; in xrep_agf_init_header() [all …]
|
D | agheader.c | 370 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_freeblks() local 381 if (blocks != be32_to_cpu(agf->agf_freeblks)) in xchk_agf_xref_freeblks() 390 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_cntbt() local 404 if (agf->agf_freeblks != be32_to_cpu(0)) in xchk_agf_xref_cntbt() 413 if (!have || blocks != be32_to_cpu(agf->agf_longest)) in xchk_agf_xref_cntbt() 422 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_btreeblks() local 434 if (blocks != be32_to_cpu(agf->agf_rmap_blocks)) in xchk_agf_xref_btreeblks() 459 if (btreeblks != be32_to_cpu(agf->agf_btreeblks)) in xchk_agf_xref_btreeblks() 468 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_refcblks() local 478 if (blocks != be32_to_cpu(agf->agf_refcount_blocks)) in xchk_agf_xref_refcblks() [all …]
|
D | bmap.c | 497 struct xfs_buf *agf; in xchk_bmap_check_ag_rmaps() local 500 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf); in xchk_bmap_check_ag_rmaps() 504 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, agno); in xchk_bmap_check_ag_rmaps() 518 xfs_trans_brelse(sc->tp, agf); in xchk_bmap_check_ag_rmaps()
|
D | repair.c | 672 struct xfs_agf *agf; member 712 error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp, in xrep_findroot_block() 816 ri.agf = XFS_BUF_TO_AGF(agf_bp); in xrep_find_ag_btree_roots()
|
D | common.h | 114 struct xfs_buf **agi, struct xfs_buf **agf,
|
D | common.c | 404 struct xfs_buf **agf, in xchk_ag_read_headers() argument 414 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, agf); in xchk_ag_read_headers()
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_ag.c | 178 struct xfs_agf *agf = XFS_BUF_TO_AGF(bp); in xfs_agfblock_init() local 181 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xfs_agfblock_init() 182 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xfs_agfblock_init() 183 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() 184 agf->agf_length = cpu_to_be32(id->agsize); in xfs_agfblock_init() 185 agf->agf_roots[XFS_BTNUM_BNOi] = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_agfblock_init() 186 agf->agf_roots[XFS_BTNUM_CNTi] = cpu_to_be32(XFS_CNT_BLOCK(mp)); in xfs_agfblock_init() 187 agf->agf_levels[XFS_BTNUM_BNOi] = cpu_to_be32(1); in xfs_agfblock_init() 188 agf->agf_levels[XFS_BTNUM_CNTi] = cpu_to_be32(1); in xfs_agfblock_init() 190 agf->agf_roots[XFS_BTNUM_RMAPi] = in xfs_agfblock_init() [all …]
|
D | xfs_refcount_btree.c | 40 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_set_root() local 41 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_refcountbt_set_root() 46 agf->agf_refcount_root = ptr->s; in xfs_refcountbt_set_root() 47 be32_add_cpu(&agf->agf_refcount_level, inc); in xfs_refcountbt_set_root() 63 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_alloc_block() local 90 be32_add_cpu(&agf->agf_refcount_blocks, 1); in xfs_refcountbt_alloc_block() 107 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_refcountbt_free_block() local 115 be32_add_cpu(&agf->agf_refcount_blocks, -1); in xfs_refcountbt_free_block() 176 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_refcountbt_init_ptr_from_cur() local 178 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() [all …]
|
D | xfs_rmap_btree.c | 68 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_set_root() local 69 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_rmapbt_set_root() 75 agf->agf_roots[btnum] = ptr->s; in xfs_rmapbt_set_root() 76 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_rmapbt_set_root() 91 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_alloc_block() local 113 be32_add_cpu(&agf->agf_rmap_blocks, 1); in xfs_rmapbt_alloc_block() 128 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_rmapbt_free_block() local 135 be32_add_cpu(&agf->agf_rmap_blocks, -1); in xfs_rmapbt_free_block() 141 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_rmapbt_free_block() 222 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_rmapbt_init_ptr_from_cur() local [all …]
|
D | xfs_alloc.c | 683 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters() local 686 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters() 689 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters() 690 be32_to_cpu(agf->agf_length))) in xfs_alloc_update_counters() 2115 struct xfs_agf *agf) in xfs_agfl_needs_reset() argument 2117 uint32_t f = be32_to_cpu(agf->agf_flfirst); in xfs_agfl_needs_reset() 2118 uint32_t l = be32_to_cpu(agf->agf_fllast); in xfs_agfl_needs_reset() 2119 uint32_t c = be32_to_cpu(agf->agf_flcount); in xfs_agfl_needs_reset() 2168 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_agfl_reset() local 2171 trace_xfs_agfl_reset(mp, agf, 0, _RET_IP_); in xfs_agfl_reset() [all …]
|
D | xfs_alloc_btree.c | 40 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_set_root() local 41 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_allocbt_set_root() 47 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root() 48 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_allocbt_set_root() 91 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_free_block() local 100 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block() 117 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_allocbt_update_lastrec() local 118 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_allocbt_update_lastrec() 137 be32_to_cpu(agf->agf_longest)) in xfs_allocbt_update_lastrec() 162 agf->agf_longest = len; in xfs_allocbt_update_lastrec() [all …]
|
D | xfs_alloc.h | 250 int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
|
/Linux-v4.19/fs/xfs/ |
D | xfs_trace.h | 1450 TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags, 1452 TP_ARGS(mp, agf, flags, caller_ip), 1471 __entry->agno = be32_to_cpu(agf->agf_seqno), 1473 __entry->length = be32_to_cpu(agf->agf_length), 1474 __entry->bno_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_BNO]), 1475 __entry->cnt_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_CNT]), 1477 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]), 1479 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]), 1480 __entry->flfirst = be32_to_cpu(agf->agf_flfirst), 1481 __entry->fllast = be32_to_cpu(agf->agf_fllast), [all …]
|
/Linux-v4.19/arch/s390/tools/ |
D | opcodes.txt | 716 e318 agf RXY_RRRD
|