Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern add an assert (hopefully to find where we recycle v...
details: https://anonhg.NetBSD.org/src/rev/193b931036fb
branches: trunk
changeset: 521770:193b931036fb
user: chs <chs%NetBSD.org@localhost>
date: Tue Feb 05 07:50:58 2002 +0000
description:
add an assert (hopefully to find where we recycle vnodes without
freeing all the pages, like I've seen recently).
diffstat:
sys/kern/vfs_subr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r f5c54fd2b097 -r 193b931036fb sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Tue Feb 05 07:12:20 2002 +0000
+++ b/sys/kern/vfs_subr.c Tue Feb 05 07:50:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.168 2001/12/10 01:38:48 chs Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.169 2002/02/05 07:50:58 chs Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.168 2001/12/10 01:38:48 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.169 2002/02/05 07:50:58 chs Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -1570,6 +1570,7 @@
simple_unlock(&vp->v_interlock);
}
+ KASSERT(vp->v_uobj.uo_npages == 0);
cache_purge(vp);
/*
Home |
Main Index |
Thread Index |
Old Index