Use fs->fs_ipg rather than cg->cg_niblk as the latter is only

16-bits and may overflow.

Obtained from:	Bruce Evans <bde@zeta.org.au>
This commit is contained in:
mckusick 2001-03-31 22:17:38 +00:00
parent 986dce6321
commit f285e3269a

View File

@ -206,7 +206,7 @@ pass5()
newcg->cg_frotor = cg->cg_frotor;
else
newcg->cg_frotor = 0;
if (cg->cg_irotor < newcg->cg_niblk)
if (cg->cg_irotor < fs->fs_ipg)
newcg->cg_irotor = cg->cg_irotor;
else
newcg->cg_irotor = 0;