Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Correct a comment about locking wrt. uvmfault_anonge...



details:   https://anonhg.NetBSD.org/src/rev/f4e07b53eade
branches:  trunk
changeset: 495776:f4e07b53eade
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Aug 05 23:40:55 2000 +0000

description:
Correct a comment about locking wrt. uvmfault_anonget().

diffstat:

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

diffs (25 lines):

diff -r f572afe8131f -r f4e07b53eade sys/uvm/uvm_anon.c
--- a/sys/uvm/uvm_anon.c        Sat Aug 05 19:09:37 2000 +0000
+++ b/sys/uvm/uvm_anon.c        Sat Aug 05 23:40:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_anon.c,v 1.7 2000/06/27 17:29:18 mrg Exp $ */
+/*     $NetBSD: uvm_anon.c,v 1.8 2000/08/05 23:40:55 thorpej Exp $     */
 
 /*
  *
@@ -479,10 +479,13 @@
        struct uvm_object *uobj;
        int rv;
        UVMHIST_FUNC("anon_pagein"); UVMHIST_CALLED(pdhist);
-       
+
        /* locked: anon */
        rv = uvmfault_anonget(NULL, NULL, anon);
-       /* unlocked: anon */
+       /*
+        * if rv == VM_PAGER_OK, anon is still locked, else anon
+        * is unlocked
+        */
 
        switch (rv) {
        case VM_PAGER_OK:



Home | Main Index | Thread Index | Old Index