Lines Matching refs:pag
115 args.pag = to_perag(cur->bc_group); in __xfs_inobt_alloc_block()
123 xfs_agbno_to_fsb(args.pag, sbno)); in __xfs_inobt_alloc_block()
478 struct xfs_perag *pag, in xfs_inobt_init_cursor() argument
482 struct xfs_mount *mp = pag_mount(pag); in xfs_inobt_init_cursor()
487 cur->bc_group = xfs_group_hold(pag_group(pag)); in xfs_inobt_init_cursor()
504 struct xfs_perag *pag, in xfs_finobt_init_cursor() argument
508 struct xfs_mount *mp = pag_mount(pag); in xfs_finobt_init_cursor()
513 cur->bc_group = xfs_group_hold(pag_group(pag)); in xfs_finobt_init_cursor()
717 struct xfs_perag *pag) in xfs_inobt_max_size() argument
719 struct xfs_mount *mp = pag_mount(pag); in xfs_inobt_max_size()
720 xfs_agblock_t agblocks = pag_group(pag)->xg_block_count; in xfs_inobt_max_size()
731 if (xfs_ag_contains_log(mp, pag_agno(pag))) in xfs_inobt_max_size()
741 struct xfs_perag *pag, in xfs_finobt_count_blocks() argument
750 error = xfs_ialloc_read_agi(pag, tp, 0, &agbp); in xfs_finobt_count_blocks()
754 cur = xfs_finobt_init_cursor(pag, tp, agbp); in xfs_finobt_count_blocks()
766 struct xfs_perag *pag, in xfs_finobt_read_blocks() argument
774 error = xfs_ialloc_read_agi(pag, tp, 0, &agbp); in xfs_finobt_read_blocks()
789 struct xfs_perag *pag, in xfs_finobt_calc_reserves() argument
797 if (!xfs_has_finobt(pag_mount(pag))) in xfs_finobt_calc_reserves()
800 if (xfs_has_inobtcounts(pag_mount(pag))) in xfs_finobt_calc_reserves()
801 error = xfs_finobt_read_blocks(pag, tp, &tree_len); in xfs_finobt_calc_reserves()
803 error = xfs_finobt_count_blocks(pag, tp, &tree_len); in xfs_finobt_calc_reserves()
807 *ask += xfs_inobt_max_size(pag); in xfs_finobt_calc_reserves()