Lines Matching defs:ag
55 /* per ag iag list locks */
149 /* allocate and init ag list locks */
342 /* get the ag for the iag */
387 /* set the ag for the inode */
814 * the ag free inode list.
820 * will be placed on the ag extent free list if the extent
823 * the iag, the iag will also be removed from the ag free
829 * ag free extent list and ag free inode list and placed on
946 * insert the iag at head of the inode free list for the ag.
949 /* check if there are any iags on the ag inode
999 /* update the free inode counts at the iag, ag and
1029 * it will be placed on the head of the ag extent free list.
1032 /* check if the ag extent free list has any iags.
1046 * iag. if so, the iag will be removed from the ag extent
1051 * ag extent free list, read the iags preceding
1052 * and following the iag on the ag extent free
1069 /* remove the iag from the ag inode free list if freeing
1077 * ag inode free list, read the iags preceding
1078 * and following the iag on the ag inode free
1125 /* add the iag to the ag extent free list if this is the
1137 /* remove the iag from the ag extent list if all extents
1159 /* remove the iag from the ag inode free list if freeing
1205 * at the ag and inode map level.
1342 * at the ag level using the preferred ag.
1359 /* get the ag number of this iag */
1368 * allocate new inodes from a different ag to avoid
1399 * new inode extent can be added to the iag if the ag
1625 * and the start of the ag.
1638 * inodes currently within the ag.
1649 * within the ag: for directory inodes, add a new extent
1666 * inode from the ag.
1673 * try to allocate an existing free inode from the ag.
1695 * and the start of the ag.
1705 int ag, rc;
1710 * the maximum ag number.
1712 for (ag = agno + 1; ag <= maxag; ag++) {
1713 AG_LOCK(imap, ag);
1715 rc = diAllocAG(imap, ag, dir, ip);
1717 AG_UNLOCK(imap, ag);
1725 for (ag = 0; ag < agno; ag++) {
1726 AG_LOCK(imap, ag);
1728 rc = diAllocAG(imap, ag, dir, ip);
1730 AG_UNLOCK(imap, ag);
1760 * and the start of the ag.
1773 /* check if there are iags on the ag's free inode list.
1867 * extents through the ag free extent list. if list is not
1870 * empty), a new iag will be allocated for the ag to contain
1884 * and the start of the ag.
1897 /* check if the ag has any iags with free extents. if not,
1898 * allocate a new iag for the ag.
1909 /* set the ag number if this a brand new iag
1956 * clear the ag number information.
1988 * ag free inode list.
2016 * if so, it will have to be removed from the ag free
2042 /* get the ag number, extent number, inode number within
2082 * iag from the ag free inode list.
2100 /* update the free inode count at the iag, ag, inode
2124 * if the iag is new, it is not yet on an ag extent free list
2129 * ag extent free list.
2132 * on the ag free inode list, since the addition of the new
2181 /* get the ag and iag numbers for this iag.
2190 * iag. if so, the iag must be removed from the ag
2209 * must be added to the ag free extent list, so get
2224 * will have to be added to the ag free inode list, so get
2297 * iag from the ag free extent list.
2312 * add the iag to the ag free extent list.
2325 * ag free inode list.
2363 /* update the free and backed inode counts for the ag.