git: a134a12b14e2 - main - Mark the debug.vnlru_nowhere sysctl as CTLFLAG_STATS

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Thu, 17 Nov 2022 16:45:30 UTC
The branch main has been updated by vangyzen:

URL: https://cgit.FreeBSD.org/src/commit/?id=a134a12b14e229c213e113f3c20a2e35c68a0337

commit a134a12b14e229c213e113f3c20a2e35c68a0337
Author:     Eric van Gyzen <vangyzen@FreeBSD.org>
AuthorDate: 2022-11-17 16:42:28 +0000
Commit:     Eric van Gyzen <vangyzen@FreeBSD.org>
CommitDate: 2022-11-17 16:44:58 +0000

    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 aaf8f1c27c87..4aea0f263e46 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