diff options
author | bde <bde@FreeBSD.org> | 1997-04-01 13:05:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-04-01 13:05:34 +0000 |
commit | da270d0a3c7d738d85773fb09e2e52610606084f (patch) | |
tree | 27d3d273ab8eeaec5ea98f07ce6a13302901ce15 /sys/kern | |
parent | 4d7709a94ec12732506d9fd04f3453cc537046f8 (diff) | |
download | FreeBSD-src-da270d0a3c7d738d85773fb09e2e52610606084f.zip FreeBSD-src-da270d0a3c7d738d85773fb09e2e52610606084f.tar.gz |
Use OID_AUTO instead of magic number for the Lite2 sysctl debug.busyprt.
Removed declaration of vfs_unmountroot() again.
Staticized vgonel().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_export.c | 9 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 9 |
2 files changed, 8 insertions, 10 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 0b487fd..4f3bc04 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.79 1997/03/04 18:31:56 bde Exp $ + * $Id: vfs_subr.c,v 1.80 1997/03/05 04:54:54 davidg Exp $ */ /* @@ -76,9 +76,8 @@ extern void printlockedvnodes __P((void)); #endif static void vclean __P((struct vnode *vp, int flags, struct proc *p)); -extern void vgonel __P((struct vnode *vp, struct proc *p)); +static void vgonel __P((struct vnode *vp, struct proc *p)); unsigned long numvnodes; -extern void vfs_unmountroot __P((struct mount *rootfs)); extern void vputrele __P((struct vnode *vp, int put)); enum vtype iftovt_tab[16] = { @@ -1133,7 +1132,7 @@ holdrele(vp) */ #ifdef DIAGNOSTIC static int busyprt = 0; /* print out busy vnodes */ -SYSCTL_INT(_debug, 1, busyprt, CTLFLAG_RW, &busyprt, 0, ""); +SYSCTL_INT(_debug, OID_AUTO, busyprt, CTLFLAG_RW, &busyprt, 0, ""); #endif int @@ -1415,7 +1414,7 @@ vgone(vp) /* * vgone, with the vp interlock held. */ -void +static void vgonel(vp, p) struct vnode *vp; struct proc *p; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0b487fd..4f3bc04 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.79 1997/03/04 18:31:56 bde Exp $ + * $Id: vfs_subr.c,v 1.80 1997/03/05 04:54:54 davidg Exp $ */ /* @@ -76,9 +76,8 @@ extern void printlockedvnodes __P((void)); #endif static void vclean __P((struct vnode *vp, int flags, struct proc *p)); -extern void vgonel __P((struct vnode *vp, struct proc *p)); +static void vgonel __P((struct vnode *vp, struct proc *p)); unsigned long numvnodes; -extern void vfs_unmountroot __P((struct mount *rootfs)); extern void vputrele __P((struct vnode *vp, int put)); enum vtype iftovt_tab[16] = { @@ -1133,7 +1132,7 @@ holdrele(vp) */ #ifdef DIAGNOSTIC static int busyprt = 0; /* print out busy vnodes */ -SYSCTL_INT(_debug, 1, busyprt, CTLFLAG_RW, &busyprt, 0, ""); +SYSCTL_INT(_debug, OID_AUTO, busyprt, CTLFLAG_RW, &busyprt, 0, ""); #endif int @@ -1415,7 +1414,7 @@ vgone(vp) /* * vgone, with the vp interlock held. */ -void +static void vgonel(vp, p) struct vnode *vp; struct proc *p; |