• Home
  • Raw
  • Download

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()
142 max_ag = ag; in xfs_filestream_pick_ag()
151 if (xfs_filestream_get_ag(mp, ag) > 1) { in xfs_filestream_pick_ag()
152 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
167 *agp = ag; in xfs_filestream_pick_ag()
172 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
176 if (++ag >= mp->m_sb.sb_agcount) in xfs_filestream_pick_ag()
177 ag = 0; in xfs_filestream_pick_ag()
180 if (ag != startag) in xfs_filestream_pick_ag()
222 item->ag = *agp; in xfs_filestream_pick_ag()
276 xfs_agnumber_t startag, ag = NULLAGNUMBER; in xfs_filestream_lookup_ag() local
287 ag = container_of(mru, struct xfs_fstrm_item, mru)->ag; in xfs_filestream_lookup_ag()
290 trace_xfs_filestream_lookup(mp, ip->i_ino, ag); in xfs_filestream_lookup_ag()
306 if (xfs_filestream_pick_ag(pip, startag, &ag, 0, 0)) in xfs_filestream_lookup_ag()
307 ag = NULLAGNUMBER; in xfs_filestream_lookup_ag()
310 return ag; in xfs_filestream_lookup_ag()
342 startag = (item->ag + 1) % mp->m_sb.sb_agcount; in xfs_filestream_new_ag()