diff options
author | phk <phk@FreeBSD.org> | 2004-10-26 09:04:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-26 09:04:20 +0000 |
commit | 274ea3ac5322264c230a2cb06b9ea72809a7c92f (patch) | |
tree | c3b9404c8a5bb8a4ae0718c085728980d4bcac1c /sys/ufs | |
parent | 70db0bbc925d15d4187df8fc2fa458c4b538fcc1 (diff) | |
download | FreeBSD-src-274ea3ac5322264c230a2cb06b9ea72809a7c92f.zip FreeBSD-src-274ea3ac5322264c230a2cb06b9ea72809a7c92f.tar.gz |
Fix syntax errors introduced by last commit.
Why isn't DIRECTIO in NOTES/LINT ?
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_rawread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_rawread.c b/sys/ufs/ffs/ffs_rawread.c index 2e15704..ca1779c 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); |