summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_subr.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-09-04 12:35:09 +0000
committerbde <bde@FreeBSD.org>1999-09-04 12:35:09 +0000
commitc8a2ac644d5eaa2224006a4d5efdeabd75b14aaa (patch)
tree5893916f5fe8e83cd5577b344519e09155e934e0 /sys/fs/nullfs/null_subr.c
parent309a6171c650eb7e6b7161f8b4a38c5765cfd173 (diff)
downloadFreeBSD-src-c8a2ac644d5eaa2224006a4d5efdeabd75b14aaa.zip
FreeBSD-src-c8a2ac644d5eaa2224006a4d5efdeabd75b14aaa.tar.gz
Get rid of the NULLFS_DIAGNOSTIC option. This option was as useful as
the other XXXFS_DIAGNOSTIC options (not very) and mostly controlled tracing of normal operation. Use `#ifdef DEBUG' for non-diagnostics and `#ifdef DIAGNOSTIC' for diagnostics.
Diffstat (limited to 'sys/fs/nullfs/null_subr.c')
-rw-r--r--sys/fs/nullfs/null_subr.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index 1504fc8..ad37a1e 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -38,8 +38,6 @@
* $FreeBSD$
*/
-#include "opt_debug_nullfs.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -77,7 +75,7 @@ nullfs_init(vfsp)
struct vfsconf *vfsp;
{
-#ifdef NULLFS_DIAGNOSTIC
+#ifdef DEBUG
printf("nullfs_init\n"); /* printed during system boot */
#endif
null_node_hashtbl = hashinit(NNULLNODECACHE, M_CACHE, &null_node_hash);
@@ -198,7 +196,7 @@ null_node_create(mp, lowervp, newvpp)
* null_node_find has taken another reference
* to the alias vnode.
*/
-#ifdef NULLFS_DIAGNOSTIC
+#ifdef DEBUG
vprint("null_node_create: exists", aliasvp);
#endif
/* VREF(aliasvp); --- done in null_node_find */
@@ -208,7 +206,7 @@ null_node_create(mp, lowervp, newvpp)
/*
* Get new vnode.
*/
-#ifdef NULLFS_DIAGNOSTIC
+#ifdef DEBUG
printf("null_node_create: create new alias vnode\n");
#endif
@@ -235,7 +233,7 @@ null_node_create(mp, lowervp, newvpp)
};
#endif
-#ifdef NULLFS_DIAGNOSTIC
+#ifdef DEBUG
vprint("null_node_create: alias", aliasvp);
vprint("null_node_create: lower", lowervp);
#endif
@@ -244,7 +242,7 @@ null_node_create(mp, lowervp, newvpp)
return (0);
}
-#ifdef NULLFS_DIAGNOSTIC
+#ifdef DIAGNOSTIC
#include "opt_ddb.h"
#ifdef DDB
OpenPOWER on IntegriCloud