- The VCHR case in ffs_sync() is an unneccsary optimization especially
considering how infrequently we access devices via ffs now that we have devfs. Collapse this case with the other case. Obtained from: bde
This commit is contained in:
parent
bed390da77
commit
60b21c1992
@ -1166,11 +1166,8 @@ ffs_sync(mp, waitfor, cred, td)
|
||||
goto loop;
|
||||
continue;
|
||||
}
|
||||
if (vp->v_type != VCHR) {
|
||||
if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
|
||||
allerror = error;
|
||||
} else
|
||||
UFS_UPDATE(vp, wait);
|
||||
if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
|
||||
allerror = error;
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
mtx_lock(&mntvnode_mtx);
|
||||
if (TAILQ_NEXT(vp, v_nmntvnodes) != nvp)
|
||||
|
Loading…
Reference in New Issue
Block a user