Lines Matching refs:pag
39 return xfs_inobt_init_cursor(cur->bc_ag.pag, cur->bc_tp, in xfs_inobt_dup_cursor()
106 args.pag = cur->bc_ag.pag; in __xfs_inobt_alloc_block()
114 XFS_AGB_TO_FSB(args.mp, args.pag->pag_agno, sbno)); in __xfs_inobt_alloc_block()
242 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
254 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
450 struct xfs_perag *pag, in xfs_inobt_init_common() argument
454 struct xfs_mount *mp = pag->pag_mount; in xfs_inobt_init_common()
470 cur->bc_ag.pag = xfs_perag_hold(pag); in xfs_inobt_init_common()
477 struct xfs_perag *pag, in xfs_inobt_init_cursor() argument
485 cur = xfs_inobt_init_common(pag, tp, btnum); in xfs_inobt_init_cursor()
497 struct xfs_perag *pag, in xfs_inobt_stage_cursor() argument
503 cur = xfs_inobt_init_common(pag, NULL, btnum); in xfs_inobt_stage_cursor()
702 struct xfs_perag *pag) in xfs_inobt_max_size() argument
704 struct xfs_mount *mp = pag->pag_mount; in xfs_inobt_max_size()
705 xfs_agblock_t agblocks = pag->block_count; in xfs_inobt_max_size()
716 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_inobt_max_size()
727 struct xfs_perag *pag, in xfs_inobt_cur() argument
739 error = xfs_ialloc_read_agi(pag, tp, agi_bpp); in xfs_inobt_cur()
743 cur = xfs_inobt_init_cursor(pag, tp, *agi_bpp, which); in xfs_inobt_cur()
750 struct xfs_perag *pag, in xfs_inobt_count_blocks() argument
759 error = xfs_inobt_cur(pag, tp, btnum, &cur, &agbp); in xfs_inobt_count_blocks()
773 struct xfs_perag *pag, in xfs_finobt_read_blocks() argument
781 error = xfs_ialloc_read_agi(pag, tp, &agbp); in xfs_finobt_read_blocks()
796 struct xfs_perag *pag, in xfs_finobt_calc_reserves() argument
804 if (!xfs_has_finobt(pag->pag_mount)) in xfs_finobt_calc_reserves()
807 if (xfs_has_inobtcounts(pag->pag_mount)) in xfs_finobt_calc_reserves()
808 error = xfs_finobt_read_blocks(pag, tp, &tree_len); in xfs_finobt_calc_reserves()
810 error = xfs_inobt_count_blocks(pag, tp, XFS_BTNUM_FINO, in xfs_finobt_calc_reserves()
815 *ask += xfs_inobt_max_size(pag); in xfs_finobt_calc_reserves()