Fix syntax errors introduced by last commit.
Why isn't DIRECTIO in NOTES/LINT ?
This commit is contained in:
parent
c427483381
commit
58883a1fe5
@ -110,7 +110,7 @@ ffs_rawread_sync(struct vnode *vp, struct thread *td)
|
||||
VI_LOCK(vp);
|
||||
bo = &vp->v_bufobj;
|
||||
if (bo->bo_numoutput > 0 ||
|
||||
bo->bo_dirty.bv_cnt > 0) ||
|
||||
bo->bo_dirty.bv_cnt > 0 ||
|
||||
(vp->v_iflag & VI_OBJDIRTY) != 0) {
|
||||
splx(spl);
|
||||
VI_UNLOCK(vp);
|
||||
@ -148,7 +148,7 @@ ffs_rawread_sync(struct vnode *vp, struct thread *td)
|
||||
return (error);
|
||||
}
|
||||
/* Flush dirty buffers */
|
||||
if (bo->bo_dirty.bv_cnt > 0)) {
|
||||
if (bo->bo_dirty.bv_cnt > 0) {
|
||||
splx(spl);
|
||||
VI_UNLOCK(vp);
|
||||
if ((error = VOP_FSYNC(vp, NOCRED, MNT_WAIT, td)) != 0) {
|
||||
@ -158,8 +158,7 @@ ffs_rawread_sync(struct vnode *vp, struct thread *td)
|
||||
}
|
||||
VI_LOCK(vp);
|
||||
spl = splbio();
|
||||
if (bo->bo_numoutput > 0 ||
|
||||
bo->bo_dirty.bv_cnt > 0))
|
||||
if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0)
|
||||
panic("ffs_rawread_sync: dirty bufs");
|
||||
}
|
||||
splx(spl);
|
||||
|
Loading…
Reference in New Issue
Block a user