Fixed error in maxcontig calculation that caused it to default to "1".

This commit is contained in:
David Greenman 1995-09-08 13:52:55 +00:00
parent 1984b014a0
commit 76b19b6b87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10627

View file

@ -474,7 +474,7 @@ main(argc, argv)
* transfer size permitted by the controller or buffering. * transfer size permitted by the controller or buffering.
*/ */
if (maxcontig == 0) if (maxcontig == 0)
maxcontig = MAX(1, MIN(MAXPHYS, MAXBSIZE) / bsize - 1); maxcontig = MAX(1, MAXPHYS / bsize - 1);
if (density == 0) if (density == 0)
density = NFPI * fsize; density = NFPI * fsize;
if (minfree < MINFREE && opt != FS_OPTSPACE) { if (minfree < MINFREE && opt != FS_OPTSPACE) {