Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix a comment.



details:   https://anonhg.NetBSD.org/src/rev/36cfb6c8a801
branches:  trunk
changeset: 745938:36cfb6c8a801
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Mar 17 00:30:17 2020 +0000

description:
Fix a comment.

diffstat:

 sys/uvm/uvm_page_array.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ea39de8e854f -r 36cfb6c8a801 sys/uvm/uvm_page_array.c
--- a/sys/uvm/uvm_page_array.c  Mon Mar 16 22:02:37 2020 +0000
+++ b/sys/uvm/uvm_page_array.c  Tue Mar 17 00:30:17 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page_array.c,v 1.4 2020/02/23 15:46:43 ad Exp $    */
+/*     $NetBSD: uvm_page_array.c,v 1.5 2020/03/17 00:30:17 ad Exp $    */
 
 /*-
  * Copyright (c)2011 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page_array.c,v 1.4 2020/02/23 15:46:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page_array.c,v 1.5 2020/03/17 00:30:17 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -139,7 +139,7 @@
                maxpages = nwant;
        }
 #if 0 /* called from DDB for "show obj/f" without lock */
-       KASSERT(rw_write_held(uobj->vmobjlock));
+       KASSERT(rw_lock_held(uobj->vmobjlock));
 #endif
        KASSERT(uvm_page_array_peek(ar) == NULL);
        if ((flags & UVM_PAGE_ARRAY_FILL_DIRTY) != 0) {



Home | Main Index | Thread Index | Old Index