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:
Kirk McKusick 2001-03-31 22:17:38 +00:00
parent deffdffafa
commit 853f677e4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75047

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;