From 622163afbe744dd036fe7e79b77dafffd5ef5227 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 4 Sep 1999 11:51:41 +0000 Subject: [PATCH] Fixed the previous change. Some more code controlled by UMAPFS_DIAGNOSTIC is actually for diagnostics; control it with DIAGNOSTIC and not DDB. --- sys/fs/umapfs/umap.h | 2 +- sys/fs/umapfs/umap_subr.c | 6 ++---- sys/miscfs/umapfs/umap.h | 2 +- sys/miscfs/umapfs/umap_subr.c | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sys/fs/umapfs/umap.h b/sys/fs/umapfs/umap.h index 854fb8cd17ff..856aeb9365e9 100644 --- a/sys/fs/umapfs/umap.h +++ b/sys/fs/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/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c index a4b8fbe89f50..6f08513cf552 100644 --- a/sys/fs/umapfs/umap_subr.c +++ b/sys/fs/umapfs/umap_subr.c @@ -38,8 +38,6 @@ * $FreeBSD$ */ -#include "opt_ddb.h" - #include #include #include @@ -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. */ diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h index 854fb8cd17ff..856aeb9365e9 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 a4b8fbe89f50..6f08513cf552 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 #include #include @@ -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. */