mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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.
This commit is contained in:
parent
17168bf62e
commit
355a2610a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38984
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user