summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/umapfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-09-04 11:51:41 +0000
committerbde <bde@FreeBSD.org>1999-09-04 11:51:41 +0000
commit2202da1ce8d513d1d7b31003522f156b4d639ee9 (patch)
tree696adb70d3006d1a3f42b0d4d1254b1f8590e984 /sys/miscfs/umapfs
parent101cc573f4c54f4db2d4ef87fb0c2d73df6f7374 (diff)
downloadFreeBSD-src-2202da1ce8d513d1d7b31003522f156b4d639ee9.zip
FreeBSD-src-2202da1ce8d513d1d7b31003522f156b4d639ee9.tar.gz
Fixed the previous change. Some more code controlled by UMAPFS_DIAGNOSTIC
is actually for diagnostics; control it with DIAGNOSTIC and not DDB.
Diffstat (limited to 'sys/miscfs/umapfs')
-rw-r--r--sys/miscfs/umapfs/umap.h2
-rw-r--r--sys/miscfs/umapfs/umap_subr.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h
index 854fb8c..856aeb9 100644
--- a/sys/miscfs/umapfs/umap.h
+++ b/sys/miscfs/umapfs/umap.h
@@ -80,7 +80,7 @@ extern void umap_mapids __P((struct mount *v_mount, struct ucred *credp));
#define MOUNTTOUMAPMOUNT(mp) ((struct umap_mount *)((mp)->mnt_data))
#define VTOUMAP(vp) ((struct umap_node *)(vp)->v_data)
#define UMAPTOV(xp) ((xp)->umap_vnode)
-#ifdef DDB
+#ifdef DIAGNOSTIC
extern struct vnode *umap_checkvp __P((struct vnode *vp, char *fil, int lno));
#define UMAPVPTOLOWERVP(vp) umap_checkvp((vp), __FILE__, __LINE__)
#else
diff --git a/sys/miscfs/umapfs/umap_subr.c b/sys/miscfs/umapfs/umap_subr.c
index a4b8fbe..6f08513 100644
--- a/sys/miscfs/umapfs/umap_subr.c
+++ b/sys/miscfs/umapfs/umap_subr.c
@@ -38,8 +38,6 @@
* $FreeBSD$
*/
-#include "opt_ddb.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -298,7 +296,7 @@ umap_node_create(mp, targetvp, newvpp)
return (0);
}
-#ifdef DDB
+#ifdef DIAGNOSTIC
int umap_checkvp_barrier = 1;
struct vnode *
umap_checkvp(vp, fil, lno)
@@ -347,7 +345,7 @@ umap_checkvp(vp, fil, lno)
#endif
return (a->umap_lowervp);
}
-#endif /* DDB */
+#endif /* DIAGNOSTIC */
/* umap_mapids maps all of the ids in a credential, both user and group. */
OpenPOWER on IntegriCloud