move namei statistics structure to h/nami.h so `vmstat' can access it
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 5 Jan 1984 08:27:47 +0000 (00:27 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 5 Jan 1984 08:27:47 +0000 (00:27 -0800)
SCCS-vsn: sys/kern/vfs_lookup.c 6.5
SCCS-vsn: sys/ufs/ffs/ufs_lookup.c 6.5
SCCS-vsn: sys/ufs/ufs/ufs_lookup.c 6.5

usr/src/sys/kern/vfs_lookup.c
usr/src/sys/ufs/ffs/ufs_lookup.c
usr/src/sys/ufs/ufs/ufs_lookup.c

index 32a0be5..d67da7c 100644 (file)
@@ -1,4 +1,4 @@
-/*     vfs_lookup.c    6.4     84/01/03        */
+/*     vfs_lookup.c    6.5     84/01/04        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -34,16 +34,8 @@ union        nchash  {
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
-struct nch     *nchhead, **nchtail;            /* LRU chain pointers */
-
-struct nchstats {              /* stats on usefulness */
-       long    ncs_goodhits;           /* hits that we can reall use */
-       long    ncs_badhits;            /* hits we must drop */
-       long    ncs_miss;               /* misses */
-       long    ncs_long;               /* long names that ignore cache */
-       long    ncs_pass2;              /* names found with passes == 2 */
-       long    ncs_2passes;            /* number of times we attempt it */
-} nchstats;
+struct nch     *nchhead, **nchtail;    /* LRU chain pointers */
+struct nchstats nchstats;              /* cache effectiveness statistics */
 
 /*
  * Convert a pathname into a pointer to a locked inode,
 
 /*
  * Convert a pathname into a pointer to a locked inode,
index 37e900f..0c74b71 100644 (file)
@@ -1,4 +1,4 @@
-/*     ufs_lookup.c    6.4     84/01/03        */
+/*     ufs_lookup.c    6.5     84/01/04        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -34,16 +34,8 @@ union        nchash  {
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
-struct nch     *nchhead, **nchtail;            /* LRU chain pointers */
-
-struct nchstats {              /* stats on usefulness */
-       long    ncs_goodhits;           /* hits that we can reall use */
-       long    ncs_badhits;            /* hits we must drop */
-       long    ncs_miss;               /* misses */
-       long    ncs_long;               /* long names that ignore cache */
-       long    ncs_pass2;              /* names found with passes == 2 */
-       long    ncs_2passes;            /* number of times we attempt it */
-} nchstats;
+struct nch     *nchhead, **nchtail;    /* LRU chain pointers */
+struct nchstats nchstats;              /* cache effectiveness statistics */
 
 /*
  * Convert a pathname into a pointer to a locked inode,
 
 /*
  * Convert a pathname into a pointer to a locked inode,
index 37e900f..0c74b71 100644 (file)
@@ -1,4 +1,4 @@
-/*     ufs_lookup.c    6.4     84/01/03        */
+/*     ufs_lookup.c    6.5     84/01/04        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -34,16 +34,8 @@ union        nchash  {
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
 #define        nch_forw        nch_chain[0]
 #define        nch_back        nch_chain[1]
 
-struct nch     *nchhead, **nchtail;            /* LRU chain pointers */
-
-struct nchstats {              /* stats on usefulness */
-       long    ncs_goodhits;           /* hits that we can reall use */
-       long    ncs_badhits;            /* hits we must drop */
-       long    ncs_miss;               /* misses */
-       long    ncs_long;               /* long names that ignore cache */
-       long    ncs_pass2;              /* names found with passes == 2 */
-       long    ncs_2passes;            /* number of times we attempt it */
-} nchstats;
+struct nch     *nchhead, **nchtail;    /* LRU chain pointers */
+struct nchstats nchstats;              /* cache effectiveness statistics */
 
 /*
  * Convert a pathname into a pointer to a locked inode,
 
 /*
  * Convert a pathname into a pointer to a locked inode,