Lines Matching refs:pag
55 struct xfs_perag *pag; member
98 struct xfs_perag *pag, in xfs_iwalk_ichunk_ra() argument
114 xfs_btree_reada_bufs(mp, pag->pag_agno, agbno, in xfs_iwalk_ichunk_ra()
186 struct xfs_perag *pag = iwag->pag; in xfs_iwalk_ag_recs() local
194 trace_xfs_iwalk_ag_rec(mp, pag->pag_agno, irec); in xfs_iwalk_ag_recs()
200 error = iwag->inobt_walk_fn(mp, tp, pag->pag_agno, irec, in xfs_iwalk_ag_recs()
218 ino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_recs()
272 struct xfs_perag *pag = iwag->pag; in xfs_iwalk_ag_start() local
278 error = xfs_inobt_cur(mp, tp, pag, XFS_BTNUM_INO, curpp, agi_bpp); in xfs_iwalk_ag_start()
312 iwag->lastino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_start()
393 error = xfs_inobt_cur(mp, iwag->tp, iwag->pag, XFS_BTNUM_INO, curpp, in xfs_iwalk_run_callbacks()
407 struct xfs_perag *pag = iwag->pag; in xfs_iwalk_ag() local
415 ASSERT(pag->pag_agno == XFS_INO_TO_AGNO(mp, iwag->startino)); in xfs_iwalk_ag()
434 rec_fsino = XFS_AGINO_TO_INO(mp, pag->pag_agno, irec->ir_startino); in xfs_iwalk_ag()
455 xfs_iwalk_ichunk_ra(mp, pag, irec); in xfs_iwalk_ag()
571 struct xfs_perag *pag; in xfs_iwalk() local
582 for_each_perag_from(mp, agno, pag) { in xfs_iwalk()
583 iwag.pag = pag; in xfs_iwalk()
590 iwag.pag = NULL; in xfs_iwalk()
593 if (iwag.pag) in xfs_iwalk()
594 xfs_perag_put(pag); in xfs_iwalk()
629 xfs_perag_put(iwag->pag); in xfs_iwalk_ag_work()
649 struct xfs_perag *pag; in xfs_iwalk_threaded() local
660 for_each_perag_from(mp, agno, pag) { in xfs_iwalk_threaded()
673 atomic_inc(&pag->pag_ref); in xfs_iwalk_threaded()
674 iwag->pag = pag; in xfs_iwalk_threaded()
681 startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_iwalk_threaded()
685 if (pag) in xfs_iwalk_threaded()
686 xfs_perag_put(pag); in xfs_iwalk_threaded()
756 struct xfs_perag *pag; in xfs_inobt_walk() local
767 for_each_perag_from(mp, agno, pag) { in xfs_inobt_walk()
768 iwag.pag = pag; in xfs_inobt_walk()
772 iwag.startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_inobt_walk()
775 iwag.pag = NULL; in xfs_inobt_walk()
778 if (iwag.pag) in xfs_inobt_walk()
779 xfs_perag_put(pag); in xfs_inobt_walk()