summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-09 07:41:41 +0000
committerbde <bde@FreeBSD.org>1998-09-09 07:41:41 +0000
commitdbe6ad54cd36e3a196589b4d1303e29fc167f8f6 (patch)
tree121421ae863d1a257ed20d6d1cde451dc15f40d6 /sys/kern/vfs_cache.c
parent22ddc2a17166307d48f3e3cbc9de31f43d4f6cfb (diff)
downloadFreeBSD-src-dbe6ad54cd36e3a196589b4d1303e29fc167f8f6.zip
FreeBSD-src-dbe6ad54cd36e3a196589b4d1303e29fc167f8f6.tar.gz
Don't use CTL_VFS at the wrong level. This caused loops in the sysctl
tree if CTL_VFS happened to get assigned as a type number to a vfs that has some vfs sysctls.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 10a0ba1..a8ac5e7 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95
- * $Id: vfs_cache.c,v 1.36 1997/11/07 08:53:05 phk Exp $
+ * $Id: vfs_cache.c,v 1.37 1997/12/19 23:18:37 bde Exp $
*/
#include <sys/param.h>
@@ -89,8 +89,7 @@ SYSCTL_INT(_debug, OID_AUTO, ncsize, CTLFLAG_RD, 0, sizeof(struct namecache), ""
/*
* The new name cache statistics
*/
-SYSCTL_NODE(_vfs, CTL_VFS, cache, CTLFLAG_RW, 0,
- "Name cache statistics");
+SYSCTL_NODE(_vfs, OID_AUTO, cache, CTLFLAG_RW, 0, "Name cache statistics");
#define STATNODE(mode, name, var) \
SYSCTL_INT(_vfs_cache, OID_AUTO, name, mode, var, 0, "");
STATNODE(CTLFLAG_RD, numneg, &numneg);
OpenPOWER on IntegriCloud