From 58883a1fe5a06b036da9b2be9fe27cb36cbb2e8d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 26 Oct 2004 09:04:20 +0000 Subject: [PATCH] Fix syntax errors introduced by last commit. Why isn't DIRECTIO in NOTES/LINT ? --- sys/ufs/ffs/ffs_rawread.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/ufs/ffs/ffs_rawread.c b/sys/ufs/ffs/ffs_rawread.c index 2e15704a784c..ca1779c1c18b 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);