Lines Matching refs:acg

452 #define	acg	cgun.cg
2870 (char *)&acg);
2871 if (acg.cg_magic != CG_MAGIC) {
2875 if (acg.cg_cs.cs_nbfree == 0) {
2880 for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag)
2881 if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag))
2887 clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag);
2888 acg.cg_cs.cs_nbfree--;
2892 acg.cg_cs.cs_ndir++;
2896 cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
2897 cg_blks(&sblock, &acg, cbtocylno(&sblock, d))[cbtorpos(&sblock, d)]--;
2902 acg.cg_cs.cs_nffree += sblock.fs_frag - frag;
2903 acg.cg_frsum[sblock.fs_frag - frag]++;
2905 setbit(cg_blksfree(&acg), d + i);
2908 (char *)&acg);
2922 (char *)&acg);
2923 if (acg.cg_magic != CG_MAGIC) {
2927 acg.cg_cs.cs_nifree--;
2928 setbit(cg_inosused(&acg), ip->i_number);
2930 (char *)&acg);
4720 growth_fs_frags += sblock.fs_fpg - acg.cg_ndblk;
4854 setbit(cg_blksfree(&acg), i-cgbase(&sblock, 0));
4919 if (isset(cg_blksfree(&acg), cfp->ofrag - cgbase(&sblock, 0))) {
4953 (int)sblock.fs_cgsize, (char *)&acg);
4968 (int)sblock.fs_cgsize, (char *)&acg);
5002 clrbit(cg_blksfree(&acg), bit+j);
5049 clrbit(cg_blksfree(&acg), cfp->ofrag - cgbase(&sblock, 0));
5064 setbit(cg_blksfree(&acg), (frag+i) - cgbase(&sblock, cylno));
5077 for (bit = *bitp, *bitsp = 0; bit < acg.cg_ndblk; ++bit)
5078 if (isset(cg_blksfree(&acg), bit))
5081 if (bit >= acg.cg_ndblk)
5086 for (++bit; bit < acg.cg_ndblk; ++bit, ++(*bitsp)) {
5089 if (isclr(cg_blksfree(&acg), bit))
5106 sblock.fs_cstotal.cs_nffree -= acg.cg_cs.cs_nffree;
5107 sblock.fs_cstotal.cs_nbfree -= acg.cg_cs.cs_nbfree;
5109 acg.cg_cs.cs_nffree = 0;
5110 acg.cg_cs.cs_nbfree = 0;
5112 bzero((caddr_t)acg.cg_frsum, sizeof (acg.cg_frsum));
5113 bzero((caddr_t)cg_blktot(&acg), (int)(acg.cg_iusedoff-acg.cg_btotoff));
5118 acg.cg_cs.cs_nbfree++;
5120 cg_blktot(&acg)[cno]++;
5121 cg_blks(&sblock, &acg, cno)[cbtorpos(&sblock, bit)]++;
5123 acg.cg_cs.cs_nffree += bits;
5124 acg.cg_frsum[bits]++;
5129 *(fscs + acg.cg_cgx) = acg.cg_cs;
5131 sblock.fs_cstotal.cs_nffree += acg.cg_cs.cs_nffree;
5132 sblock.fs_cstotal.cs_nbfree += acg.cg_cs.cs_nbfree;
5150 dupper = acg.cg_ndblk;
5152 acg.cg_ncyl = sblock.fs_ncyl - (sblock.fs_cpg * cylno);
5154 acg.cg_ncyl = sblock.fs_cpg;
5159 acg.cg_ndblk = dmax - cbase;
5161 for (i = dupper; i < acg.cg_ndblk; ++i)
5162 setbit(cg_blksfree(&acg), i);
5164 sblock.fs_dsize += (acg.cg_ndblk - dupper);