Source-Changes-HG archive

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

[src/chs-ubc2]: src/sys/uvm Remove an #ifdef UBC for the new uvm_vnode/vnode ...



details:   https://anonhg.NetBSD.org/src/rev/0d4599b5fdcf
branches:  chs-ubc2
changeset: 471353:0d4599b5fdcf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 02 18:32:19 1999 +0000

description:
Remove an #ifdef UBC for the new uvm_vnode/vnode flags; just always use them
instead, and g/c the old ones.  (Boy, this really confused me at first! :-)

diffstat:

 sys/uvm/uvm_vnode.h |  29 +----------------------------
 1 files changed, 1 insertions(+), 28 deletions(-)

diffs (48 lines):

diff -r 8b5d08a72970 -r 0d4599b5fdcf sys/uvm/uvm_vnode.h
--- a/sys/uvm/uvm_vnode.h       Fri Jul 02 18:31:28 1999 +0000
+++ b/sys/uvm/uvm_vnode.h       Fri Jul 02 18:32:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_vnode.h,v 1.7.4.4 1999/07/02 00:24:41 thorpej Exp $        */
+/*     $NetBSD: uvm_vnode.h,v 1.7.4.5 1999/07/02 18:32:19 thorpej Exp $        */
 
 /*
  *
@@ -65,7 +65,6 @@
 /*
  * u_flags values
  */
-#ifdef UBC
 #define UVM_VNODE_RELKILL      VXLOCK
 #define UVM_VNODE_WANTED       VXWANT
 #define UVM_VNODE_IOSYNCWANTED VBWAIT
@@ -75,30 +74,4 @@
 
 #define UVM_VNODE_ALOCK                VXLOCK
 
-#else
-#define UVM_VNODE_VALID                0x001   /* we are attached to the vnode */
-#define UVM_VNODE_CANPERSIST   0x002   /* we can persist after ref == 0 */
-#define UVM_VNODE_ALOCK                0x004   /* uvn_attach is locked out */
-#define UVM_VNODE_DYING                0x008   /* final detach/terminate in 
-                                          progress */
-#define UVM_VNODE_RELKILL      0x010   /* uvn should be killed by releasepg
-                                          when final i/o is done */
-#define UVM_VNODE_WANTED       0x020   /* someone is waiting for alock,
-                                          dying, or relkill to clear */
-#define UVM_VNODE_VNISLOCKED   0x040   /* underlying vnode struct is locked
-                                          (valid when DYING is true) */
-#define UVM_VNODE_IOSYNC       0x080   /* I/O sync in progress ... setter
-                                          sleeps on &uvn->u_nio */
-#define UVM_VNODE_IOSYNCWANTED 0x100   /* a process is waiting for the
-                                          i/o sync to clear so it can do
-                                          i/o */
-#define UVM_VNODE_WRITEABLE    0x200   /* uvn has pages that are writeable */
-
-/*
- * UVM_VNODE_BLOCKED: any condition that should new processes from
- * touching the vnode [set WANTED and sleep to wait for it to clear]
- */
-#define UVM_VNODE_BLOCKED (UVM_VNODE_ALOCK|UVM_VNODE_DYING|UVM_VNODE_RELKILL)
-#endif /* UBC */
-
 #endif /* _UVM_UVM_VNODE_H_ */



Home | Main Index | Thread Index | Old Index