Home
last modified time | relevance | path

Searched refs:ag (Results 1 – 5 of 5) sorted by relevance

/fs/xfs/
Dxfs_filestream.c36 xfs_agnumber_t ag; /* AG in use for this directory */ member
128 xfs_filestream_put_ag(item->ip->i_mount, item->ag); in xfs_fstrm_free_func()
130 trace_xfs_filestream_free(item->ip, item->ag); in xfs_fstrm_free_func()
151 xfs_agnumber_t ag, max_ag = NULLAGNUMBER; in xfs_filestream_pick_ag() local
159 ag = startag; in xfs_filestream_pick_ag()
166 trace_xfs_filestream_scan(ip, ag); in xfs_filestream_pick_ag()
168 pag = xfs_perag_get(mp, ag); in xfs_filestream_pick_ag()
171 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
185 max_ag = ag; in xfs_filestream_pick_ag()
194 if (xfs_filestream_get_ag(mp, ag) > 1) { in xfs_filestream_pick_ag()
[all …]
Dxfs_icache.c721 xfs_agnumber_t ag; in xfs_inode_ag_iterator_flags() local
723 ag = 0; in xfs_inode_ag_iterator_flags()
724 while ((pag = xfs_perag_get(mp, ag))) { in xfs_inode_ag_iterator_flags()
725 ag = pag->pag_agno + 1; in xfs_inode_ag_iterator_flags()
761 xfs_agnumber_t ag; in xfs_inode_ag_iterator_tag() local
763 ag = 0; in xfs_inode_ag_iterator_tag()
764 while ((pag = xfs_perag_get_tag(mp, ag, tag))) { in xfs_inode_ag_iterator_tag()
765 ag = pag->pag_agno + 1; in xfs_inode_ag_iterator_tag()
1112 xfs_agnumber_t ag; in xfs_reclaim_inodes_ag() local
1117 ag = 0; in xfs_reclaim_inodes_ag()
[all …]
/fs/jfs/
Djfs_extent.c516 int ag; in extBalloc() local
550 ag = BLKTOAG(daddr, sbi); in extBalloc()
553 atomic_inc(&bmp->db_active[ag]); in extBalloc()
554 ji->active_ag = ag; in extBalloc()
555 } else if (ji->active_ag != ag) { in extBalloc()
557 atomic_inc(&bmp->db_active[ag]); in extBalloc()
558 ji->active_ag = ag; in extBalloc()
Djfs_imap.c1721 int ag, rc; in diAllocAny() local
1728 for (ag = agno + 1; ag <= maxag; ag++) { in diAllocAny()
1729 AG_LOCK(imap, ag); in diAllocAny()
1731 rc = diAllocAG(imap, ag, dir, ip); in diAllocAny()
1733 AG_UNLOCK(imap, ag); in diAllocAny()
1741 for (ag = 0; ag < agno; ag++) { in diAllocAny()
1742 AG_LOCK(imap, ag); in diAllocAny()
1744 rc = diAllocAG(imap, ag, dir, ip); in diAllocAny()
1746 AG_UNLOCK(imap, ag); in diAllocAny()
/fs/xfs/libxfs/
Dxfs_bmap.c3505 xfs_agnumber_t ag, in xfs_bmap_longest_free_extent() argument
3514 pag = xfs_perag_get(mp, ag); in xfs_bmap_longest_free_extent()
3516 error = xfs_alloc_pagf_init(mp, tp, ag, XFS_ALLOC_FLAG_TRYLOCK); in xfs_bmap_longest_free_extent()
3571 xfs_agnumber_t ag, startag; in xfs_bmap_btalloc_nullfb() local
3578 startag = ag = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_bmap_btalloc_nullfb()
3580 startag = ag = 0; in xfs_bmap_btalloc_nullfb()
3583 error = xfs_bmap_longest_free_extent(args->tp, ag, blen, in xfs_bmap_btalloc_nullfb()
3588 if (++ag == mp->m_sb.sb_agcount) in xfs_bmap_btalloc_nullfb()
3589 ag = 0; in xfs_bmap_btalloc_nullfb()
3590 if (ag == startag) in xfs_bmap_btalloc_nullfb()
[all …]