mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Quick fix for initialization of mnt_iosize_max. (This limit controls
mainly clustering and read-ahead.) Copy the initialization from ffs, and also copy a couple of lines of ffs's nearby style for initialization order and whitespace. A correct fix would de-duplicate the initialization and fix bitrot in it instead of adding another instance of the duplication. Complications to use the size preferred by the device have been reduced to hard-coding slightly pessimal and/or inconsistent defaults, using large code that was almost needed to support the complications. For msdosfs, the result was that mnt_iosize_max was DFTLPHYS (64K) but is now MAXPHYS (128K).
This commit is contained in:
parent
1f03d0bae1
commit
8ec22c4d65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342353
|
@ -418,9 +418,12 @@ mountmsdosfs(struct vnode *devvp, struct mount *mp)
|
|||
return (error);
|
||||
}
|
||||
dev_ref(dev);
|
||||
VOP_UNLOCK(devvp, 0);
|
||||
|
||||
bo = &devvp->v_bufobj;
|
||||
VOP_UNLOCK(devvp, 0);
|
||||
if (dev->si_iosize_max != 0)
|
||||
mp->mnt_iosize_max = dev->si_iosize_max;
|
||||
if (mp->mnt_iosize_max > MAXPHYS)
|
||||
mp->mnt_iosize_max = MAXPHYS;
|
||||
|
||||
/*
|
||||
* Read the boot sector of the filesystem, and then check the
|
||||
|
|
Loading…
Reference in a new issue