Lines Matching refs:agi
50 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root() local
52 agi->agi_root = nptr->s; in xfs_inobt_set_root()
53 be32_add_cpu(&agi->agi_level, inc); in xfs_inobt_set_root()
64 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root() local
66 agi->agi_free_root = nptr->s; in xfs_finobt_set_root()
67 be32_add_cpu(&agi->agi_free_level, inc); in xfs_finobt_set_root()
79 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount() local
85 be32_add_cpu(&agi->agi_fblocks, howmuch); in xfs_inobt_mod_blockcount()
87 be32_add_cpu(&agi->agi_iblocks, howmuch); in xfs_inobt_mod_blockcount()
238 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; in xfs_inobt_init_ptr_from_cur() local
240 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
242 ptr->s = agi->agi_root; in xfs_inobt_init_ptr_from_cur()
250 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; in xfs_finobt_init_ptr_from_cur() local
252 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
253 ptr->s = agi->agi_free_root; in xfs_finobt_init_ptr_from_cur()
465 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_init_cursor() local
469 cur->bc_nlevels = be32_to_cpu(agi->agi_level); in xfs_inobt_init_cursor()
471 cur->bc_nlevels = be32_to_cpu(agi->agi_free_level); in xfs_inobt_init_cursor()
500 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_commit_staged_btree() local
508 agi->agi_root = cpu_to_be32(afake->af_root); in xfs_inobt_commit_staged_btree()
509 agi->agi_level = cpu_to_be32(afake->af_levels); in xfs_inobt_commit_staged_btree()
511 agi->agi_iblocks = cpu_to_be32(afake->af_blocks); in xfs_inobt_commit_staged_btree()
518 agi->agi_free_root = cpu_to_be32(afake->af_root); in xfs_inobt_commit_staged_btree()
519 agi->agi_free_level = cpu_to_be32(afake->af_levels); in xfs_inobt_commit_staged_btree()
521 agi->agi_fblocks = cpu_to_be32(afake->af_blocks); in xfs_inobt_commit_staged_btree()
760 struct xfs_agi *agi; in xfs_finobt_read_blocks() local
767 agi = agbp->b_addr; in xfs_finobt_read_blocks()
768 *tree_blocks = be32_to_cpu(agi->agi_fblocks); in xfs_finobt_read_blocks()