Mark the debug.vnlru_nowhere sysctl as CTLFLAG_STATS

The kernel doesn't read it.  It's only writable so it can be cleared.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2022-11-17 10:42:28 -06:00
parent bacb00ab40
commit a134a12b14

View File

@ -371,7 +371,7 @@ SYSCTL_PROC(_vfs, OID_AUTO, wantfreevnodes,
SYSCTL_ULONG(_kern, OID_AUTO, minvnodes, CTLFLAG_RW,
&wantfreevnodes, 0, "Old name for vfs.wantfreevnodes (legacy)");
static int vnlru_nowhere;
SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW,
SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW | CTLFLAG_STATS,
&vnlru_nowhere, 0, "Number of times the vnlru process ran without success");
static int