Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Minor correction to previous.



details:   https://anonhg.NetBSD.org/src/rev/e78f1a3f1e67
branches:  trunk
changeset: 465656:e78f1a3f1e67
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Dec 01 14:43:26 2019 +0000

description:
Minor correction to previous.

diffstat:

 sys/uvm/uvm_km.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 65374964cd52 -r e78f1a3f1e67 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c  Sun Dec 01 14:40:31 2019 +0000
+++ b/sys/uvm/uvm_km.c  Sun Dec 01 14:43:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_km.c,v 1.148 2019/12/01 14:40:31 ad Exp $  */
+/*     $NetBSD: uvm_km.c,v 1.149 2019/12/01 14:43:26 ad Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -152,7 +152,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.148 2019/12/01 14:40:31 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.149 2019/12/01 14:43:26 ad Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -481,6 +481,7 @@
        mutex_exit(uobj->vmobjlock);
 
        if (swpgonlydelta > 0) {
+               KASSERT(uvmexp.swpgonly >= swpgonlydelta);
                atomic_add_int(&uvmexp.swpgonly, -swpgonlydelta);
        }
 }



Home | Main Index | Thread Index | Old Index