From 107a67d3513946188a7e39b5161fa9072c2cc163 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 28 Sep 2002 12:15:44 +0000 Subject: Correctly order VI_UNLOCK(), local variables and block comment. --- sys/kern/vfs_bio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 25b9de0..e05263d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2404,15 +2404,15 @@ loop: splx(s); bp->b_flags &= ~B_DONE; } else { - VI_UNLOCK(vp); + int bsize, maxsize, vmio; + off_t offset; + /* * Buffer is not in-core, create new buffer. The buffer * returned by getnewbuf() is locked. Note that the returned * buffer is also considered valid (not marked B_INVAL). */ - int bsize, maxsize, vmio; - off_t offset; - + VI_UNLOCK(vp); if (vn_isdisk(vp, NULL)) bsize = DEV_BSIZE; else if (vp->v_mountedhere) -- cgit v1.1