Lines Matching refs:agi
48 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root() local
50 agi->agi_root = nptr->s; in xfs_inobt_set_root()
51 be32_add_cpu(&agi->agi_level, inc); in xfs_inobt_set_root()
62 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root() local
64 agi->agi_free_root = nptr->s; in xfs_finobt_set_root()
65 be32_add_cpu(&agi->agi_free_level, inc); in xfs_finobt_set_root()
77 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount() local
83 be32_add_cpu(&agi->agi_fblocks, howmuch); in xfs_inobt_mod_blockcount()
85 be32_add_cpu(&agi->agi_iblocks, howmuch); in xfs_inobt_mod_blockcount()
236 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; in xfs_inobt_init_ptr_from_cur() local
238 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
240 ptr->s = agi->agi_root; in xfs_inobt_init_ptr_from_cur()
248 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; in xfs_finobt_init_ptr_from_cur() local
250 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
251 ptr->s = agi->agi_free_root; in xfs_finobt_init_ptr_from_cur()
468 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_init_cursor() local
472 cur->bc_nlevels = be32_to_cpu(agi->agi_level); in xfs_inobt_init_cursor()
474 cur->bc_nlevels = be32_to_cpu(agi->agi_free_level); in xfs_inobt_init_cursor()
504 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_commit_staged_btree() local
512 agi->agi_root = cpu_to_be32(afake->af_root); in xfs_inobt_commit_staged_btree()
513 agi->agi_level = cpu_to_be32(afake->af_levels); in xfs_inobt_commit_staged_btree()
515 agi->agi_iblocks = cpu_to_be32(afake->af_blocks); in xfs_inobt_commit_staged_btree()
522 agi->agi_free_root = cpu_to_be32(afake->af_root); in xfs_inobt_commit_staged_btree()
523 agi->agi_free_level = cpu_to_be32(afake->af_levels); in xfs_inobt_commit_staged_btree()
525 agi->agi_fblocks = cpu_to_be32(afake->af_blocks); in xfs_inobt_commit_staged_btree()
713 struct xfs_agi *agi; in xfs_finobt_read_blocks() local
720 agi = agbp->b_addr; in xfs_finobt_read_blocks()
721 *tree_blocks = be32_to_cpu(agi->agi_fblocks); in xfs_finobt_read_blocks()