Lines Matching refs:agf
65 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() local
71 agf->agf_roots[btnum] = ptr->s; in xfs_rmapbt_set_root()
72 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_rmapbt_set_root()
86 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_alloc_block() local
108 be32_add_cpu(&agf->agf_rmap_blocks, 1); in xfs_rmapbt_alloc_block()
123 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_free_block() local
131 be32_add_cpu(&agf->agf_rmap_blocks, -1); in xfs_rmapbt_free_block()
137 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_rmapbt_free_block()
218 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_rmapbt_init_ptr_from_cur() local
220 ASSERT(cur->bc_ag.agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur()
222 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_rmapbt_init_ptr_from_cur()
481 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_init_cursor() local
485 cur->bc_nlevels = be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAP]); in xfs_rmapbt_init_cursor()
514 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_commit_staged_btree() local
519 agf->agf_roots[cur->bc_btnum] = cpu_to_be32(afake->af_root); in xfs_rmapbt_commit_staged_btree()
520 agf->agf_levels[cur->bc_btnum] = cpu_to_be32(afake->af_levels); in xfs_rmapbt_commit_staged_btree()
521 agf->agf_rmap_blocks = cpu_to_be32(afake->af_blocks); in xfs_rmapbt_commit_staged_btree()
606 struct xfs_agf *agf; in xfs_rmapbt_calc_reserves() local
618 agf = agbp->b_addr; in xfs_rmapbt_calc_reserves()
619 agblocks = be32_to_cpu(agf->agf_length); in xfs_rmapbt_calc_reserves()
620 tree_len = be32_to_cpu(agf->agf_rmap_blocks); in xfs_rmapbt_calc_reserves()