Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Revert previous. The KASSERT() is right and my anal...
details: https://anonhg.NetBSD.org/src/rev/c33a58bdea33
branches: trunk
changeset: 750819:c33a58bdea33
user: bouyer <bouyer%NetBSD.org@localhost>
date: Fri Jan 15 19:28:26 2010 +0000
description:
Revert previous. The KASSERT() is right and my analysis is wrong,
as pointed out by pooka@.
diffstat:
sys/kern/vfs_subr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 75bebe9a7667 -r c33a58bdea33 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Fri Jan 15 19:24:49 2010 +0000
+++ b/sys/kern/vfs_subr.c Fri Jan 15 19:28:26 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.396 2010/01/14 22:41:52 bouyer Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.397 2010/01/15 19:28:26 bouyer Exp $ */
/*-
* Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.396 2010/01/14 22:41:52 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.397 2010/01/15 19:28:26 bouyer Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -641,6 +641,7 @@
vp->v_socket = NULL;
}
+ KASSERT(vp->v_usecount == 1);
KASSERT(vp->v_freelisthd == NULL);
KASSERT(LIST_EMPTY(&vp->v_nclist));
KASSERT(LIST_EMPTY(&vp->v_dnclist));
@@ -681,6 +682,7 @@
ungetnewvnode(vnode_t *vp)
{
+ KASSERT(vp->v_usecount == 1);
KASSERT(vp->v_data == NULL);
KASSERT(vp->v_freelisthd == NULL);
Home |
Main Index |
Thread Index |
Old Index