/Linux-v6.1/fs/xfs/scrub/ |
D | agheader_repair.c | 194 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() local 196 memcpy(old_agf, agf, sizeof(*old_agf)); in xrep_agf_init_header() 197 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 198 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xrep_agf_init_header() 199 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xrep_agf_init_header() 200 agf->agf_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agf_init_header() 201 agf->agf_length = cpu_to_be32(sc->sa.pag->block_count); in xrep_agf_init_header() 202 agf->agf_flfirst = old_agf->agf_flfirst; in xrep_agf_init_header() 203 agf->agf_fllast = old_agf->agf_fllast; in xrep_agf_init_header() 204 agf->agf_flcount = old_agf->agf_flcount; in xrep_agf_init_header() [all …]
|
D | agheader.c | 373 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() local 384 if (blocks != be32_to_cpu(agf->agf_freeblks)) in xchk_agf_xref_freeblks() 393 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() local 407 if (agf->agf_freeblks != cpu_to_be32(0)) in xchk_agf_xref_cntbt() 416 if (!have || blocks != be32_to_cpu(agf->agf_longest)) in xchk_agf_xref_cntbt() 425 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() local 441 if (blocks != be32_to_cpu(agf->agf_rmap_blocks)) in xchk_agf_xref_btreeblks() 466 if (btreeblks != be32_to_cpu(agf->agf_btreeblks)) in xchk_agf_xref_btreeblks() 475 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() local 485 if (blocks != be32_to_cpu(agf->agf_refcount_blocks)) in xchk_agf_xref_refcblks() [all …]
|
D | repair.c | 216 struct xfs_agf *agf = bp->b_addr; in xrep_calc_ag_resblks() local 218 aglen = be32_to_cpu(agf->agf_length); in xrep_calc_ag_resblks() 219 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()
|
D | bmap.c | 540 struct xfs_buf *agf; in xchk_bmap_check_ag_rmaps() local 543 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf); in xchk_bmap_check_ag_rmaps() 547 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, pag); in xchk_bmap_check_ag_rmaps() 556 xfs_trans_brelse(sc->tp, agf); in xchk_bmap_check_ag_rmaps()
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_ag.c | 575 struct xfs_agf *agf = bp->b_addr; in xfs_agfblock_init() local 578 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xfs_agfblock_init() 579 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xfs_agfblock_init() 580 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() 581 agf->agf_length = cpu_to_be32(id->agsize); in xfs_agfblock_init() 582 agf->agf_roots[XFS_BTNUM_BNOi] = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_agfblock_init() 583 agf->agf_roots[XFS_BTNUM_CNTi] = cpu_to_be32(XFS_CNT_BLOCK(mp)); in xfs_agfblock_init() 584 agf->agf_levels[XFS_BTNUM_BNOi] = cpu_to_be32(1); in xfs_agfblock_init() 585 agf->agf_levels[XFS_BTNUM_CNTi] = cpu_to_be32(1); in xfs_agfblock_init() 587 agf->agf_roots[XFS_BTNUM_RMAPi] = in xfs_agfblock_init() [all …]
|
D | xfs_refcount_btree.c | 42 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_set_root() local 47 agf->agf_refcount_root = ptr->s; in xfs_refcountbt_set_root() 48 be32_add_cpu(&agf->agf_refcount_level, inc); in xfs_refcountbt_set_root() 63 struct xfs_agf *agf = agbp->b_addr; 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 = agbp->b_addr; in xfs_refcountbt_free_block() local 113 be32_add_cpu(&agf->agf_refcount_blocks, -1); in xfs_refcountbt_free_block() 179 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_refcountbt_init_ptr_from_cur() local 181 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() 183 ptr->s = agf->agf_refcount_root; in xfs_refcountbt_init_ptr_from_cur() [all …]
|
D | xfs_alloc.c | 730 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters() local 733 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters() 735 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters() 736 be32_to_cpu(agf->agf_length))) { in xfs_alloc_update_counters() 938 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_cur_finish() local 944 ASSERT(acur->rec_bno + acur->rec_len <= be32_to_cpu(agf->agf_length)); in xfs_alloc_cur_finish() 1042 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small() local 1071 be32_to_cpu(agf->agf_flcount) <= args->minleft) in xfs_alloc_ag_vextent_small() 1096 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small() 1217 struct xfs_agf __maybe_unused *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_exact() local [all …]
|
D | xfs_rmap_btree.c | 67 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() local 72 agf->agf_roots[btnum] = ptr->s; in xfs_rmapbt_set_root() 73 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_rmapbt_set_root() 87 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block() local 107 be32_add_cpu(&agf->agf_rmap_blocks, 1); in xfs_rmapbt_alloc_block() 122 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block() local 130 be32_add_cpu(&agf->agf_rmap_blocks, -1); in xfs_rmapbt_free_block() 215 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_rmapbt_init_ptr_from_cur() local 217 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur() 219 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_rmapbt_init_ptr_from_cur() [all …]
|
D | xfs_alloc_btree.c | 40 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root() local 45 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root() 46 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_allocbt_set_root() 114 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_update_lastrec() local 133 be32_to_cpu(agf->agf_longest)) in xfs_allocbt_update_lastrec() 158 agf->agf_longest = len; in xfs_allocbt_update_lastrec() 225 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_init_ptr_from_cur() local 227 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur() 229 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_allocbt_init_ptr_from_cur() 516 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_init_cursor() local [all …]
|
D | xfs_alloc.h | 202 int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
|
/Linux-v6.1/fs/xfs/ |
D | xfs_discard.c | 34 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()
|
D | xfs_notify_failure.c | 127 struct xfs_agf *agf; in xfs_dax_notify_ddev_failure() local 149 agf = agf_bp->b_addr; in xfs_dax_notify_ddev_failure() 150 agend = min(be32_to_cpu(agf->agf_length), in xfs_dax_notify_ddev_failure()
|
D | xfs_trace.h | 1684 TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags, 1686 TP_ARGS(mp, agf, flags, caller_ip), 1705 __entry->agno = be32_to_cpu(agf->agf_seqno), 1707 __entry->length = be32_to_cpu(agf->agf_length), 1708 __entry->bno_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_BNO]), 1709 __entry->cnt_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_CNT]), 1711 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]), 1713 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]), 1714 __entry->flfirst = be32_to_cpu(agf->agf_flfirst), 1715 __entry->fllast = be32_to_cpu(agf->agf_fllast), [all …]
|
/Linux-v6.1/arch/s390/tools/ |
D | opcodes.txt | 751 e318 agf RXY_RRRD
|