Lines Matching defs:ag
55 /* per ag iag list locks */
147 /* allocate and init ag list locks */
340 /* get the ag for the iag */
385 /* set the ag for the inode */
812 * the ag free inode list.
818 * will be placed on the ag extent free list if the extent
821 * the iag, the iag will also be removed from the ag free
827 * ag free extent list and ag free inode list and placed on
944 * insert the iag at head of the inode free list for the ag.
947 /* check if there are any iags on the ag inode
997 /* update the free inode counts at the iag, ag and
1027 * it will be placed on the head of the ag extent free list.
1030 /* check if the ag extent free list has any iags.
1044 * iag. if so, the iag will be removed from the ag extent
1049 * ag extent free list, read the iags preceding
1050 * and following the iag on the ag extent free
1067 /* remove the iag from the ag inode free list if freeing
1075 * ag inode free list, read the iags preceding
1076 * and following the iag on the ag inode free
1123 /* add the iag to the ag extent free list if this is the
1135 /* remove the iag from the ag extent list if all extents
1157 /* remove the iag from the ag inode free list if freeing
1203 * at the ag and inode map level.
1340 * at the ag level using the preferred ag.
1357 /* get the ag number of this iag */
1366 * allocate new inodes from a different ag to avoid
1397 * new inode extent can be added to the iag if the ag
1623 * and the start of the ag.
1636 * inodes currently within the ag.
1647 * within the ag: for directory inodes, add a new extent
1664 * inode from the ag.
1671 * try to allocate an existing free inode from the ag.
1693 * and the start of the ag.
1703 int ag, rc;
1708 * the maximum ag number.
1710 for (ag = agno + 1; ag <= maxag; ag++) {
1711 AG_LOCK(imap, ag);
1713 rc = diAllocAG(imap, ag, dir, ip);
1715 AG_UNLOCK(imap, ag);
1723 for (ag = 0; ag < agno; ag++) {
1724 AG_LOCK(imap, ag);
1726 rc = diAllocAG(imap, ag, dir, ip);
1728 AG_UNLOCK(imap, ag);
1758 * and the start of the ag.
1771 /* check if there are iags on the ag's free inode list.
1865 * extents through the ag free extent list. if list is not
1868 * empty), a new iag will be allocated for the ag to contain
1882 * and the start of the ag.
1895 /* check if the ag has any iags with free extents. if not,
1896 * allocate a new iag for the ag.
1907 /* set the ag number if this a brand new iag
1954 * clear the ag number information.
1986 * ag free inode list.
2014 * if so, it will have to be removed from the ag free
2040 /* get the ag number, extent number, inode number within
2080 * iag from the ag free inode list.
2098 /* update the free inode count at the iag, ag, inode
2122 * if the iag is new, it is not yet on an ag extent free list
2127 * ag extent free list.
2130 * on the ag free inode list, since the addition of the new
2179 /* get the ag and iag numbers for this iag.
2188 * iag. if so, the iag must be removed from the ag
2207 * must be added to the ag free extent list, so get
2222 * will have to be added to the ag free inode list, so get
2295 * iag from the ag free extent list.
2310 * add the iag to the ag free extent list.
2323 * ag free inode list.
2361 /* update the free and backed inode counts for the ag.