Lines Matching defs:ucg
43 struct ufs_cylinder_group * ucg;
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
70 if (!ufs_cg_chkmagic(sb, ucg)) {
78 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1);
87 fs32_add(sb, &ucg->cg_cs.cs_nffree, count);
91 ufs_fragacct(sb, blkmap, ucg->cg_frsum, 1);
98 fs32_sub(sb, &ucg->cg_cs.cs_nffree, uspi->s_fpb);
103 fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1);
140 struct ufs_cylinder_group * ucg;
178 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
179 if (!ufs_cg_chkmagic(sb, ucg)) {
193 fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1);
503 struct ufs_cylinder_group * ucg;
522 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
523 if (!ufs_cg_chkmagic(sb, ucg)) {
537 ucg->cg_time = cpu_to_fs32(sb, get_seconds());
542 if (!fs32_to_cpu(sb, ucg->cg_frsum[fragsize]))
545 fs32_sub(sb, &ucg->cg_frsum[fragsize], 1);
547 fs32_add(sb, &ucg->cg_frsum[fragsize - count], 1);
551 fs32_sub(sb, &ucg->cg_cs.cs_nffree, count);
567 ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \
568 if (fs32_to_cpu(sb, ucg->cg_cs.cs_nbfree)) \
571 if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
581 struct ufs_cylinder_group * ucg;
627 ucg = ubh_get_ucg (UCPI_UBH(ucpi));
628 if (!ufs_cg_chkmagic(sb, ucg))
631 ucg->cg_time = cpu_to_fs32(sb, get_seconds());
641 if (fs32_to_cpu(sb, ucg->cg_frsum[allocsize]) != 0)
653 fs32_add(sb, &ucg->cg_cs.cs_nffree, i);
656 fs32_add(sb, &ucg->cg_frsum[i], 1);
666 fs32_sub(sb, &ucg->cg_cs.cs_nffree, count);
669 fs32_sub(sb, &ucg->cg_frsum[allocsize], 1);
672 fs32_add(sb, &ucg->cg_frsum[allocsize - count], 1);
693 struct ufs_cylinder_group * ucg;
701 ucg = ubh_get_ucg(UCPI_UBH(ucpi));
729 fs32_sub(sb, &ucg->cg_cs.cs_nbfree, 1);
797 struct ufs_cylinder_group *ucg;
806 ucg = ubh_get_ucg(UCPI_UBH(ucpi));