| /linux/fs/xfs/libxfs/ |
| H A D | xfs_ag.c | 494 struct xfs_agf *agf = bp->b_addr; in xfs_agfblock_init() local 497 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xfs_agfblock_init() 498 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xfs_agfblock_init() 499 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() 500 agf->agf_length = cpu_to_be32(id->agsize); in xfs_agfblock_init() 501 agf->agf_bno_root = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_agfblock_init() 502 agf->agf_cnt_root = cpu_to_be32(XFS_CNT_BLOCK(mp)); in xfs_agfblock_init() 503 agf->agf_bno_level = cpu_to_be32(1); in xfs_agfblock_init() 504 agf->agf_cnt_level = cpu_to_be32(1); in xfs_agfblock_init() 506 agf->agf_rmap_root = cpu_to_be32(XFS_RMAP_BLOCK(mp)); in xfs_agfblock_init() [all …]
|
| H A D | xfs_refcount_btree.c | 43 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_set_root() local 48 agf->agf_refcount_root = ptr->s; in xfs_refcountbt_set_root() 49 be32_add_cpu(&agf->agf_refcount_level, inc); in xfs_refcountbt_set_root() 64 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_alloc_block() local 88 be32_add_cpu(&agf->agf_refcount_blocks, 1); in xfs_refcountbt_alloc_block() 105 struct xfs_agf *agf = agbp->b_addr; in xfs_refcountbt_free_block() local 108 be32_add_cpu(&agf->agf_refcount_blocks, -1); in xfs_refcountbt_free_block() 170 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_refcountbt_init_ptr_from_cur() local 172 ASSERT(cur->bc_group->xg_gno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() 174 ptr->s = agf->agf_refcount_root; in xfs_refcountbt_init_ptr_from_cur() [all …]
|
| H A D | xfs_alloc_btree.c | 50 struct xfs_agf *agf = agbp->b_addr; in xfs_allocbt_set_root() local 55 agf->agf_bno_root = ptr->s; in xfs_allocbt_set_root() 56 be32_add_cpu(&agf->agf_bno_level, inc); in xfs_allocbt_set_root() 59 agf->agf_cnt_root = ptr->s; in xfs_allocbt_set_root() 60 be32_add_cpu(&agf->agf_cnt_level, inc); in xfs_allocbt_set_root() 179 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_allocbt_init_ptr_from_cur() local 181 ASSERT(cur->bc_group->xg_gno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur() 184 ptr->s = agf->agf_bno_root; in xfs_allocbt_init_ptr_from_cur() 186 ptr->s = agf->agf_cnt_root; in xfs_allocbt_init_ptr_from_cur() 490 struct xfs_agf *agf = agbp->b_addr; in xfs_bnobt_init_cursor() local [all …]
|
| H A D | xfs_alloc.c | 543 struct xfs_agf *agf = bp->b_addr; in xfs_alloc_fixup_longest() local 553 agf->agf_longest = cpu_to_be32(pag->pagf_longest); in xfs_alloc_fixup_longest() 903 struct xfs_agf *agf = agbp->b_addr; in xfs_alloc_update_counters() local 906 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters() 908 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters() 909 be32_to_cpu(agf->agf_length))) { in xfs_alloc_update_counters() 1213 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_small() local 1243 be32_to_cpu(agf->agf_flcount) <= args->minleft) in xfs_alloc_ag_vextent_small() 1268 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small() 1794 struct xfs_agf *agf = args->agbp->b_addr; in xfs_alloc_ag_vextent_size() local [all …]
|
| H A D | xfs_rmap_btree.c | 70 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() local 75 agf->agf_rmap_root = ptr->s; in xfs_rmapbt_set_root() 76 be32_add_cpu(&agf->agf_rmap_level, inc); in xfs_rmapbt_set_root() 90 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block() local 109 be32_add_cpu(&agf->agf_rmap_blocks, 1); in xfs_rmapbt_alloc_block() 128 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block() local 134 be32_add_cpu(&agf->agf_rmap_blocks, -1); in xfs_rmapbt_free_block() 229 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_rmapbt_init_ptr_from_cur() local 231 ASSERT(cur->bc_group->xg_gno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur() 233 ptr->s = agf->agf_rmap_root; in xfs_rmapbt_init_ptr_from_cur() [all …]
|
| H A D | xfs_alloc.h | 221 int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
|
| /linux/fs/xfs/scrub/ |
| H A D | agheader_repair.c | 205 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() local 207 memcpy(old_agf, agf, sizeof(*old_agf)); in xrep_agf_init_header() 208 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 209 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xrep_agf_init_header() 210 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xrep_agf_init_header() 211 agf->agf_seqno = cpu_to_be32(pag_agno(pag)); in xrep_agf_init_header() 212 agf->agf_length = cpu_to_be32(pag_group(pag)->xg_block_count); in xrep_agf_init_header() 213 agf->agf_flfirst = old_agf->agf_flfirst; in xrep_agf_init_header() 214 agf->agf_fllast = old_agf->agf_fllast; in xrep_agf_init_header() 215 agf->agf_flcount = old_agf->agf_flcount; in xrep_agf_init_header() [all …]
|
| H A D | agheader.c | 450 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() local 461 if (blocks != be32_to_cpu(agf->agf_freeblks)) in xchk_agf_xref_freeblks() 470 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() local 484 if (agf->agf_freeblks != cpu_to_be32(0)) in xchk_agf_xref_cntbt() 493 if (!have || blocks != be32_to_cpu(agf->agf_longest)) in xchk_agf_xref_cntbt() 502 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() local 518 if (blocks != be32_to_cpu(agf->agf_rmap_blocks)) in xchk_agf_xref_btreeblks() 543 if (btreeblks != be32_to_cpu(agf->agf_btreeblks)) in xchk_agf_xref_btreeblks() 552 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() local 562 if (blocks != be32_to_cpu(agf->agf_refcount_blocks)) in xchk_agf_xref_refcblks() [all …]
|
| H A D | alloc_repair.c | 366 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_find_freespace() local 384 agend = be32_to_cpu(agf->agf_length); in xrep_abt_find_freespace() 396 error = xfs_agfl_walk(mp, agf, agfl_bp, xrep_abt_walk_agfl, ra); in xrep_abt_find_freespace() 653 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_reset_counters() local 671 agf->agf_btreeblks = cpu_to_be32(freesp_btreeblks + in xrep_abt_reset_counters() 672 (be32_to_cpu(agf->agf_rmap_blocks) - 1)); in xrep_abt_reset_counters() 673 agf->agf_freeblks = cpu_to_be32(ra->nr_blocks); in xrep_abt_reset_counters() 674 agf->agf_longest = cpu_to_be32(ra->longest); in xrep_abt_reset_counters()
|
| H A D | rmap_repair.c | 1050 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_try_reserve() local 1114 error = xfs_agfl_walk(sc->mp, agf, agfl_bp, xrep_rmap_walk_agfl, &ra); in xrep_rmap_try_reserve() 1190 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_reset_counters() local 1198 agf->agf_btreeblks = cpu_to_be32(rr->freesp_btblocks + rmap_btblocks); in xrep_rmap_reset_counters() 1340 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_build_new_tree() local 1349 rr->old_rmapbt_fsbcount = be32_to_cpu(agf->agf_rmap_blocks); in xrep_rmap_build_new_tree() 1510 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_remove_old_tree() local 1527 agend = be32_to_cpu(agf->agf_length); in xrep_rmap_remove_old_tree()
|
| H A D | repair.c | 321 struct xfs_agf *agf = bp->b_addr; in xrep_calc_ag_resblks() local 323 aglen = be32_to_cpu(agf->agf_length); in xrep_calc_ag_resblks() 324 freelen = be32_to_cpu(agf->agf_freeblks); in xrep_calc_ag_resblks() 497 struct xfs_agf *agf; member 538 error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp, in xrep_findroot_block() 723 ri.agf = agf_bp->b_addr; in xrep_find_ag_btree_roots()
|
| H A D | bmap.c | 698 struct xfs_buf *agf; in xchk_bmap_check_ag_rmaps() local 701 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf); in xchk_bmap_check_ag_rmaps() 705 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf, pag); in xchk_bmap_check_ag_rmaps() 714 xfs_trans_brelse(sc->tp, agf); in xchk_bmap_check_ag_rmaps()
|
| H A D | inode_repair.c | 765 struct xfs_buf *agf; in xrep_dinode_count_ag_rmaps() local 768 error = xfs_alloc_read_agf(pag, ri->sc->tp, 0, &agf); in xrep_dinode_count_ag_rmaps() 772 cur = xfs_rmapbt_init_cursor(ri->sc->mp, ri->sc->tp, agf, pag); in xrep_dinode_count_ag_rmaps() 775 xfs_trans_brelse(ri->sc->tp, agf); in xrep_dinode_count_ag_rmaps()
|
| /linux/arch/s390/tools/ |
| H A D | opcodes.txt | 755 e318 agf RXY_RRRD
|