Uncompress some one line comments to reduce the difference with NetBSD.
authormpi <mpi@openbsd.org>
Sat, 12 Mar 2022 12:34:22 +0000 (12:34 +0000)
committermpi <mpi@openbsd.org>
Sat, 12 Mar 2022 12:34:22 +0000 (12:34 +0000)
No functionnal change.

sys/uvm/uvm_page.c
sys/uvm/uvm_pdaemon.c

index 57b7a52..3dd327d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_page.c,v 1.162 2022/03/10 10:46:56 mpi Exp $      */
+/*     $OpenBSD: uvm_page.c,v 1.163 2022/03/12 12:34:22 mpi Exp $      */
 /*     $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $        */
 
 /*
@@ -985,7 +985,9 @@ uvm_pageclean(struct vm_page *pg)
        if (pg->pg_flags & PG_TABLED)
                uvm_pageremove(pg);
 
-       /* now remove the page from the queues */
+       /*
+        * now remove the page from the queues
+        */
        if (pg->pg_flags & PQ_ACTIVE) {
                TAILQ_REMOVE(&uvm.page_active, pg, pageq);
                flags_to_clear |= PQ_ACTIVE;
@@ -1000,7 +1002,9 @@ uvm_pageclean(struct vm_page *pg)
                uvmexp.inactive--;
        }
 
-       /* if the page was wired, unwire it now. */
+       /*
+        * if the page was wired, unwire it now.
+        */
        if (pg->wire_count) {
                pg->wire_count = 0;
                uvmexp.wired--;
index fc4b7ba..79afc30 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_pdaemon.c,v 1.94 2021/12/15 12:53:53 mpi Exp $    */
+/*     $OpenBSD: uvm_pdaemon.c,v 1.95 2022/03/12 12:34:22 mpi Exp $    */
 /*     $NetBSD: uvm_pdaemon.c,v 1.23 2000/08/20 10:24:14 bjh21 Exp $   */
 
 /* 
@@ -243,7 +243,9 @@ uvm_pageout(void *arg)
 
                uvm_unlock_fpageq();
 
-               /* now lock page queues and recompute inactive count */
+               /*
+                * now lock page queues and recompute inactive count
+                */
                uvm_lock_pageq();
                if (npages != uvmexp.npages) {  /* check for new pages? */
                        npages = uvmexp.npages;
@@ -271,7 +273,9 @@ uvm_pageout(void *arg)
 #endif
                uvm_lock_pageq();
 
-               /* Scan if needed to meet our targets. */
+               /*
+                * scan if needed
+                */
                if (pma != NULL ||
                    ((uvmexp.free - BUFPAGES_DEFICIT) < uvmexp.freetarg) ||
                    ((uvmexp.inactive + BUFPAGES_INACT) < uvmexp.inactarg)) {
@@ -304,7 +308,9 @@ uvm_pageout(void *arg)
                }
                uvm_unlock_fpageq();
 
-               /* scan done. unlock page queues (only lock we are holding) */
+               /*
+                * scan done.  unlock page queues (the only lock we are holding)
+                */
                uvm_unlock_pageq();
 
                sched_pause(yield);