Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Use UVM_OBJ_IS_VNODE().



details:   https://anonhg.NetBSD.org/src/rev/8aeaa60dd6cf
branches:  trunk
changeset: 503014:8aeaa60dd6cf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jan 28 22:14:52 2001 +0000

description:
Use UVM_OBJ_IS_VNODE().

diffstat:

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

diffs (20 lines):

diff -r 7c16498598b4 -r 8aeaa60dd6cf sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Sun Jan 28 22:14:28 2001 +0000
+++ b/sys/uvm/uvm_page.c        Sun Jan 28 22:14:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.48 2001/01/23 01:56:17 thorpej Exp $    */
+/*     $NetBSD: uvm_page.c,v 1.49 2001/01/28 22:14:52 thorpej Exp $    */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -192,9 +192,8 @@
        simple_unlock(&uvm.hashlock);
        splx(s);
 
-       if (pg->uobject->pgops == &uvm_vnodeops) {
+       if (UVM_OBJ_IS_VNODE(pg->uobject))
                uvmexp.vnodepages--;
-       }
 
        /* object should be locked */
        TAILQ_REMOVE(&pg->uobject->memq, pg, listq);



Home | Main Index | Thread Index | Old Index