- 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:
Jeff Roberson 2003-10-05 22:56:33 +00:00
parent 9aa3d17d37
commit 69b609a85d

View File

@ -1166,11 +1166,8 @@ loop:
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)