From a134a12b14e229c213e113f3c20a2e35c68a0337 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Thu, 17 Nov 2022 10:42:28 -0600 Subject: [PATCH] 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 --- sys/kern/vfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index aaf8f1c27c8..4aea0f263e4 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -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