Lines Matching refs:ag

25 	xfs_agnumber_t			ag; /* AG in use for this directory */  member
87 xfs_filestream_put_ag(mp, item->ag); in xfs_fstrm_free_func()
88 trace_xfs_filestream_free(mp, mru->key, item->ag); in xfs_fstrm_free_func()
109 xfs_agnumber_t ag, max_ag = NULLAGNUMBER; in xfs_filestream_pick_ag() local
117 ag = startag; in xfs_filestream_pick_ag()
124 trace_xfs_filestream_scan(mp, ip->i_ino, ag); in xfs_filestream_pick_ag()
126 pag = xfs_perag_get(mp, ag); in xfs_filestream_pick_ag()
129 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
143 max_ag = ag; in xfs_filestream_pick_ag()
152 if (xfs_filestream_get_ag(mp, ag) > 1) { in xfs_filestream_pick_ag()
153 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
168 *agp = ag; in xfs_filestream_pick_ag()
173 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
177 if (++ag >= mp->m_sb.sb_agcount) in xfs_filestream_pick_ag()
178 ag = 0; in xfs_filestream_pick_ag()
181 if (ag != startag) in xfs_filestream_pick_ag()
223 item->ag = *agp; in xfs_filestream_pick_ag()
277 xfs_agnumber_t startag, ag = NULLAGNUMBER; in xfs_filestream_lookup_ag() local
288 ag = container_of(mru, struct xfs_fstrm_item, mru)->ag; in xfs_filestream_lookup_ag()
291 trace_xfs_filestream_lookup(mp, ip->i_ino, ag); in xfs_filestream_lookup_ag()
307 if (xfs_filestream_pick_ag(pip, startag, &ag, 0, 0)) in xfs_filestream_lookup_ag()
308 ag = NULLAGNUMBER; in xfs_filestream_lookup_ag()
311 return ag; in xfs_filestream_lookup_ag()
343 startag = (item->ag + 1) % mp->m_sb.sb_agcount; in xfs_filestream_new_ag()