Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpvfs fix an incorrect assertion in the p...



details:   https://anonhg.NetBSD.org/src/rev/37b86a095270
branches:  trunk
changeset: 1015373:37b86a095270
user:      chs <chs%NetBSD.org@localhost>
date:      Thu Oct 22 03:05:17 2020 +0000

description:
fix an incorrect assertion in the previous commit.

diffstat:

 sys/rump/librump/rumpvfs/vm_vfs.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 2f7c6dcb8ab5 -r 37b86a095270 sys/rump/librump/rumpvfs/vm_vfs.c
--- a/sys/rump/librump/rumpvfs/vm_vfs.c Wed Oct 21 15:12:15 2020 +0000
+++ b/sys/rump/librump/rumpvfs/vm_vfs.c Thu Oct 22 03:05:17 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_vfs.c,v 1.39 2020/10/18 18:22:29 chs Exp $  */
+/*     $NetBSD: vm_vfs.c,v 1.40 2020/10/22 03:05:17 chs Exp $  */
 
 /*
  * Copyright (c) 2008-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.39 2020/10/18 18:22:29 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.40 2020/10/22 03:05:17 chs Exp $");
 
 #include <sys/param.h>
 
@@ -46,7 +46,8 @@
        rw_enter(uobj->vmobjlock, RW_WRITER);
        for (i = 0; i < npages; i++) {
                pg = pgs[i];
-               KASSERT((pg->flags & PG_FAKE) == 0);
+               KASSERT((pg->flags & PG_PAGEOUT) == 0 ||
+                       (pg->flags & PG_FAKE) == 0);
        }
        uvm_page_unbusy(pgs, npages);
        rw_exit(uobj->vmobjlock);



Home | Main Index | Thread Index | Old Index