Lines Matching refs:ucg

44 	struct ufs_cylinder_group * ucg;  in ufs_free_fragments()  local
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_fragments()
70 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_fragments()
78 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1); in ufs_free_fragments()
88 fs32_add(sb, &ucg->cg_cs.cs_nffree, count); in ufs_free_fragments()
92 ufs_fragacct(sb, blkmap, ucg->cg_frsum, 1); in ufs_free_fragments()
99 fs32_sub(sb, &ucg->cg_cs.cs_nffree, uspi->s_fpb); in ufs_free_fragments()
104 fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1); in ufs_free_fragments()
140 struct ufs_cylinder_group * ucg; in ufs_free_blocks() local
177 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_blocks()
178 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_blocks()
193 fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1); in ufs_free_blocks()
514 struct ufs_cylinder_group * ucg; in ufs_add_fragments() local
532 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_add_fragments()
533 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_add_fragments()
550 ucg->cg_time = ufs_get_seconds(sb); in ufs_add_fragments()
555 if (!fs32_to_cpu(sb, ucg->cg_frsum[fragsize])) in ufs_add_fragments()
558 fs32_sub(sb, &ucg->cg_frsum[fragsize], 1); in ufs_add_fragments()
560 fs32_add(sb, &ucg->cg_frsum[fragsize - count], 1); in ufs_add_fragments()
564 fs32_sub(sb, &ucg->cg_cs.cs_nffree, count); in ufs_add_fragments()
580 ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \
581 if (fs32_to_cpu(sb, ucg->cg_cs.cs_nbfree)) \
584 if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
593 struct ufs_cylinder_group * ucg; in ufs_alloc_fragments() local
638 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_alloc_fragments()
639 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_alloc_fragments()
642 ucg->cg_time = ufs_get_seconds(sb); in ufs_alloc_fragments()
652 if (fs32_to_cpu(sb, ucg->cg_frsum[allocsize]) != 0) in ufs_alloc_fragments()
665 fs32_add(sb, &ucg->cg_cs.cs_nffree, i); in ufs_alloc_fragments()
668 fs32_add(sb, &ucg->cg_frsum[i], 1); in ufs_alloc_fragments()
680 fs32_sub(sb, &ucg->cg_cs.cs_nffree, count); in ufs_alloc_fragments()
683 fs32_sub(sb, &ucg->cg_frsum[allocsize], 1); in ufs_alloc_fragments()
686 fs32_add(sb, &ucg->cg_frsum[allocsize - count], 1); in ufs_alloc_fragments()
706 struct ufs_cylinder_group * ucg; in ufs_alloccg_block() local
713 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_alloccg_block()
743 fs32_sub(sb, &ucg->cg_cs.cs_nbfree, 1); in ufs_alloccg_block()