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