summaryrefslogtreecommitdiffstats
path: root/sys/coda/coda_namecache.c
diff options
context:
space:
mode:
authorrvb <rvb@FreeBSD.org>1998-09-25 17:38:32 +0000
committerrvb <rvb@FreeBSD.org>1998-09-25 17:38:32 +0000
commitebf7679a7e6dee376f8e96d282b4632a27465aae (patch)
tree4e2b0fbcfac67784827375cd6b89d1c5553218bc /sys/coda/coda_namecache.c
parenta2aeaf4564624f0c0604313ae94415c0c349b905 (diff)
downloadFreeBSD-src-ebf7679a7e6dee376f8e96d282b4632a27465aae.zip
FreeBSD-src-ebf7679a7e6dee376f8e96d282b4632a27465aae.tar.gz
Put "stray" printouts under DIAGNOSTIC. Make everything build
with DEBUG on. Add support for lkm. (The macro's don't work for me; for a good chuckle look at the end of coda_fbsd.c.)
Diffstat (limited to 'sys/coda/coda_namecache.c')
-rw-r--r--sys/coda/coda_namecache.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/coda/coda_namecache.c b/sys/coda/coda_namecache.c
index 44cc4da..ae64047 100644
--- a/sys/coda/coda_namecache.c
+++ b/sys/coda/coda_namecache.c
@@ -27,7 +27,7 @@
* Mellon the rights to redistribute these changes without encumbrance.
*
* @(#) src/sys/coda/coda_namecache.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
- * $Id: coda_namecache.c,v 1.4 1998/09/11 18:50:17 rvb Exp $
+ * $Id: coda_namecache.c,v 1.5 1998/09/13 13:57:59 rvb Exp $
*
*/
@@ -47,6 +47,9 @@
/*
* HISTORY
* $Log: coda_namecache.c,v $
+ * Revision 1.5 1998/09/13 13:57:59 rvb
+ * Finish conversion of cfs -> coda
+ *
* Revision 1.4 1998/09/11 18:50:17 rvb
* All the references to cfs, in symbols, structs, and strings
* have been changed to coda. (Same for CFS.)
@@ -232,6 +235,10 @@
#include <coda/cnode.h>
#include <coda/coda_namecache.h>
+#ifdef DEBUG
+#include <coda/coda_vnops.h>
+#endif
+
/*
* Declaration of the name cache data structure.
*/
@@ -276,7 +283,9 @@ coda_nc_init(void)
bzero(&coda_nc_stat, (sizeof(struct coda_nc_statistics)));
+#ifdef DIAGNOSTIC
printf("CODA NAME CACHE: CACHE %d, HASH TBL %d\n", CODA_NC_CACHESIZE, CODA_NC_HASHSIZE);
+#endif
CODA_ALLOC(coda_nc_heap, struct coda_cache *, TOTAL_CACHE_SIZE);
CODA_ALLOC(coda_nc_hash, struct coda_hash *, TOTAL_HASH_SIZE);
@@ -868,7 +877,6 @@ coda_nc_resize(hashsize, heapsize, dcstat)
return(0);
}
-#define DEBUG
#ifdef DEBUG
char coda_nc_name_buf[CODA_MAXNAMLEN+1];
OpenPOWER on IntegriCloud