Searched refs:start_agno (Results 1 – 4 of 4) sorted by relevance
/fs/xfs/libxfs/ |
D | xfs_ag.h | 293 #define for_each_perag_wrap_range(mp, start_agno, restart_agno, wrap_agno, agno, pag) \ argument 294 for ((agno) = (start_agno), (pag) = xfs_perag_grab((mp), (agno)); \ 296 (pag) = xfs_perag_next_wrap((pag), &(agno), (start_agno), \ 302 #define for_each_perag_wrap_at(mp, start_agno, wrap_agno, agno, pag) \ argument 303 for_each_perag_wrap_range((mp), (start_agno), 0, (wrap_agno), (agno), (pag)) 309 #define for_each_perag_wrap(mp, start_agno, agno, pag) \ argument 310 for_each_perag_wrap_at((mp), (start_agno), (mp)->m_sb.sb_agcount, \
|
D | xfs_alloc.c | 3512 xfs_agnumber_t start_agno, in xfs_alloc_vextent_iterate_ags() argument 3524 for_each_perag_wrap_range(mp, start_agno, restart_agno, in xfs_alloc_vextent_iterate_ags() 3539 if (args->agno == start_agno && target_agbno) { in xfs_alloc_vextent_iterate_ags() 3587 xfs_agnumber_t start_agno; in xfs_alloc_vextent_start_ag() local 3615 start_agno = max(minimum_agno, XFS_FSB_TO_AGNO(mp, target)); in xfs_alloc_vextent_start_ag() 3616 error = xfs_alloc_vextent_iterate_ags(args, minimum_agno, start_agno, in xfs_alloc_vextent_start_ag() 3620 if (args->agno == start_agno) in xfs_alloc_vextent_start_ag() 3643 xfs_agnumber_t start_agno; in xfs_alloc_vextent_first_ag() local 3661 start_agno = max(minimum_agno, XFS_FSB_TO_AGNO(mp, target)); in xfs_alloc_vextent_first_ag() 3662 error = xfs_alloc_vextent_iterate_ags(args, minimum_agno, start_agno, in xfs_alloc_vextent_first_ag()
|
D | xfs_ialloc.c | 1744 xfs_agnumber_t start_agno; in xfs_dialloc() local 1758 start_agno = (atomic_inc_return(&mp->m_agirotor) - 1) % in xfs_dialloc() 1761 start_agno = XFS_INO_TO_AGNO(mp, parent); in xfs_dialloc() 1762 if (start_agno >= mp->m_maxagi) in xfs_dialloc() 1763 start_agno = 0; in xfs_dialloc() 1801 for_each_perag_wrap_at(mp, start_agno, mp->m_maxagi, agno, pag) { in xfs_dialloc()
|
/fs/xfs/ |
D | xfs_filestream.c | 59 xfs_agnumber_t start_agno, in xfs_filestream_pick_ag() argument 76 for_each_perag_wrap(mp, start_agno, agno, pag) { in xfs_filestream_pick_ag() 153 for_each_perag_wrap(args->mp, 0, start_agno, args->pag) in xfs_filestream_pick_ag()
|