• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/

Lines Matching defs:ag

78 #define TRACE_AG_SCAN(mp, ag, ag2) \
79 TRACE2(mp, XFS_FSTRM_KTRACE_AGSCAN, ag, ag2);
82 #define TRACE_AG_PICK2(mp, ag, ag2, cnt, free, scan, flag) \
83 TRACE6(mp, XFS_FSTRM_KTRACE_AGPICK2, ag, ag2, \
85 #define TRACE_UPDATE(mp, ip, ag, cnt, ag2, cnt2) \
86 TRACE5(mp, XFS_FSTRM_KTRACE_UPDATE, ip, ag, cnt, ag2, cnt2)
87 #define TRACE_FREE(mp, ip, pip, ag, cnt) \
88 TRACE4(mp, XFS_FSTRM_KTRACE_FREE, ip, pip, ag, cnt)
89 #define TRACE_LOOKUP(mp, ip, pip, ag, cnt) \
90 TRACE4(mp, XFS_FSTRM_KTRACE_ITEM_LOOKUP, ip, pip, ag, cnt)
91 #define TRACE_ASSOCIATE(mp, ip, pip, ag, cnt) \
92 TRACE4(mp, XFS_FSTRM_KTRACE_ASSOCIATE, ip, pip, ag, cnt)
95 #define TRACE_ORPHAN(mp, ip, ag) \
96 TRACE2(mp, XFS_FSTRM_KTRACE_ORPHAN, ip, ag);
100 #define TRACE_AG_SCAN(mp, ag, ag2)
102 #define TRACE_AG_PICK2(mp, ag, ag2, cnt, free, scan, flag)
103 #define TRACE_UPDATE(mp, ip, ag, cnt, ag2, cnt2)
104 #define TRACE_FREE(mp, ip, pip, ag, cnt)
105 #define TRACE_LOOKUP(mp, ip, pip, ag, cnt)
106 #define TRACE_ASSOCIATE(mp, ip, pip, ag, cnt)
108 #define TRACE_ORPHAN(mp, ip, ag)
121 xfs_agnumber_t ag; /* AG currently in use for the file/directory. */
127 * Allocation group filestream associations are tracked with per-ag atomic
130 * point's m_peraglock is used to protect these counters from per-ag array
145 * remaining items from the cache and reallocates the mount point's per-ag
160 * the cache that reference per-ag array elements that have since been
218 xfs_agnumber_t ag, max_ag = NULLAGNUMBER;
224 ag = startag;
231 pag = xfs_perag_get(mp, ag);
232 TRACE_AG_SCAN(mp, ag, atomic_read(&pag->pagf_fstrms));
235 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock);
250 max_ag = ag;
259 if (xfs_filestream_get_ag(mp, ag) > 1) {
260 xfs_filestream_put_ag(mp, ag);
274 *agp = ag;
279 xfs_filestream_put_ag(mp, ag);
283 if (++ag >= mp->m_sb.sb_agcount)
284 ag = 0;
287 if (ag != startag)
334 xfs_agnumber_t ag)
357 old_ag = item->ag;
358 item->ag = ag;
367 if (ag != old_ag) {
369 xfs_filestream_get_ag(mp, ag);
382 ag, xfs_filestream_peek_ag(mp, ag));
390 item->ag = ag;
401 xfs_filestream_get_ag(mp, ag);
416 TRACE_UPDATE(mp, ip, ag, xfs_filestream_peek_ag(mp, ag),
417 ag, xfs_filestream_peek_ag(mp, ag));
436 xfs_filestream_put_ag(ip->i_mount, item->ag);
438 TRACE_FREE(ip->i_mount, ip, item->pip, item->ag,
439 xfs_filestream_peek_ag(ip->i_mount, item->ag));
537 xfs_agnumber_t ag;
553 ag = item->ag;
554 ref = xfs_filestream_peek_ag(ip->i_mount, ag);
557 TRACE_LOOKUP(ip->i_mount, ip, item->pip, ag, ref);
558 return ag;
579 xfs_agnumber_t ag, rotorstep, startag;
612 ag = item->ag;
615 TRACE_LOOKUP(mp, pip, pip, ag, xfs_filestream_peek_ag(mp, ag));
616 err = _xfs_filestream_update_ag(ip, pip, ag);
634 err = _xfs_filestream_pick_ag(mp, startag, &ag, 0, 0);
635 if (err || ag == NULLAGNUMBER)
639 err = _xfs_filestream_update_ag(pip, NULL, ag);
644 err = _xfs_filestream_update_ag(ip, pip, ag);
648 TRACE_ASSOCIATE(mp, ip, pip, ag, xfs_filestream_peek_ag(mp, ag));
656 if (ag != NULLAGNUMBER)
657 xfs_filestream_put_ag(mp, ag);
666 * function is called by xfs_bmap_filestreams() with the mount point's per-ag
680 xfs_agnumber_t ag = NULLAGNUMBER;
698 ag = file->ag;
711 if (dir->ag != file->ag) {
712 xfs_filestream_put_ag(mp, file->ag);
713 xfs_filestream_get_ag(mp, dir->ag);
714 *agp = file->ag = dir->ag;
737 ag, xfs_filestream_peek_ag(mp, ag),
756 ag = (ag == NULLAGNUMBER) ? 0 : (ag + 1) % mp->m_sb.sb_agcount;
760 err = _xfs_filestream_pick_ag(mp, ag, agp, flags, minlen);