diff --git a/sys/ufs/ffs/ffs_rawread.c b/sys/ufs/ffs/ffs_rawread.c index 2e15704a784..ca1779c1c18 100644 --- a/sys/ufs/ffs/ffs_rawread.c +++ b/sys/ufs/ffs/ffs_rawread.c @@ -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);