summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-28 12:15:44 +0000
committerphk <phk@FreeBSD.org>2002-09-28 12:15:44 +0000
commit107a67d3513946188a7e39b5161fa9072c2cc163 (patch)
treefad3c4b9134615ab1f9a09a031ea61cdf9079c92 /sys/kern
parent6b59496dd8a81fdc44728cc92cde703c9cb7ae4f (diff)
downloadFreeBSD-src-107a67d3513946188a7e39b5161fa9072c2cc163.zip
FreeBSD-src-107a67d3513946188a7e39b5161fa9072c2cc163.tar.gz
Correctly order VI_UNLOCK(), local variables and block comment.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_bio.c8
1 files changed, 4 insertions, 4 deletions
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)
OpenPOWER on IntegriCloud