diff options
author | dyson <dyson@FreeBSD.org> | 1996-03-09 06:43:19 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-03-09 06:43:19 +0000 |
commit | 67123e935d04c5262099e995302ff960059254db (patch) | |
tree | 4b17fb33723e8e86a9acfa61fb10f63eba228355 | |
parent | 77f053059a90cac34958fb41722b941023f27c6c (diff) | |
download | FreeBSD-src-67123e935d04c5262099e995302ff960059254db.zip FreeBSD-src-67123e935d04c5262099e995302ff960059254db.tar.gz |
Put the "free vnode isn't" check back in the right place.
-rw-r--r-- | sys/kern/vfs_export.c | 6 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 7fec92b..95e632c 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94 - * $Id: vfs_subr.c,v 1.51 1996/01/04 21:12:26 wollman Exp $ + * $Id: vfs_subr.c,v 1.52 1996/01/19 03:58:15 dyson Exp $ */ /* @@ -367,14 +367,14 @@ retry: goto retry; } freevnodes--; + if (vp->v_usecount) + panic("free vnode isn't"); /* see comment on why 0xdeadb is set at end of vgone (below) */ vp->v_freelist.tqe_prev = (struct vnode **) 0xdeadb; vp->v_lease = NULL; if (vp->v_type != VBAD) vgone(vp); - if (vp->v_usecount) - panic("free vnode isn't"); #ifdef DIAGNOSTIC { diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 7fec92b..95e632c 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94 - * $Id: vfs_subr.c,v 1.51 1996/01/04 21:12:26 wollman Exp $ + * $Id: vfs_subr.c,v 1.52 1996/01/19 03:58:15 dyson Exp $ */ /* @@ -367,14 +367,14 @@ retry: goto retry; } freevnodes--; + if (vp->v_usecount) + panic("free vnode isn't"); /* see comment on why 0xdeadb is set at end of vgone (below) */ vp->v_freelist.tqe_prev = (struct vnode **) 0xdeadb; vp->v_lease = NULL; if (vp->v_type != VBAD) vgone(vp); - if (vp->v_usecount) - panic("free vnode isn't"); #ifdef DIAGNOSTIC { |