mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
Fixed error in maxcontig calculation that caused it to default to "1".
This commit is contained in:
parent
1984b014a0
commit
76b19b6b87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10627
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue