Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern do the bookkeeping right
details: https://anonhg.NetBSD.org/src/rev/3f8e629e0f48
branches: trunk
changeset: 773295:3f8e629e0f48
user: para <para%NetBSD.org@localhost>
date: Mon Jan 30 17:35:18 2012 +0000
description:
do the bookkeeping right
diffstat:
sys/kern/subr_vmem.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e161d180e114 -r 3f8e629e0f48 sys/kern/subr_vmem.c
--- a/sys/kern/subr_vmem.c Mon Jan 30 17:21:52 2012 +0000
+++ b/sys/kern/subr_vmem.c Mon Jan 30 17:35:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_vmem.c,v 1.69 2012/01/29 17:27:37 rmind Exp $ */
+/* $NetBSD: subr_vmem.c,v 1.70 2012/01/30 17:35:18 para Exp $ */
/*-
* Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.69 2012/01/29 17:27:37 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.70 2012/01/30 17:35:18 para Exp $");
#if defined(_KERNEL)
#include "opt_ddb.h"
@@ -1260,6 +1260,7 @@
KASSERT(bt->bt_size >= size);
bt_remfree(vm, bt);
vmem_check(vm);
+ vm->vm_inuse += size;
if (bt->bt_start != start) {
btnew2->bt_type = BT_TYPE_FREE;
btnew2->bt_start = bt->bt_start;
Home |
Main Index |
Thread Index |
Old Index