git: afb08a6d0717 - main - cache: hide hash stats behind DEBUG_CACHE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Mar 2022 17:30:54 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=afb08a6d07174bab1a0fc2d01eb2d1b4bf481179
commit afb08a6d07174bab1a0fc2d01eb2d1b4bf481179
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-03-03 17:21:13 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-03-03 17:21:58 +0000
cache: hide hash stats behind DEBUG_CACHE
They take a long time to dump and hinder sysctl -a when used with
DIAGNOSTIC.
---
sys/kern/vfs_cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index c47f6a0438b1..254b5d4d1b69 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1029,7 +1029,7 @@ SYSCTL_PROC(_vfs_cache_param, OID_AUTO, negminpct,
CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, NULL, 0, sysctl_negminpct,
"I", "Negative entry \% of namecache capacity above which automatic eviction is allowed");
-#ifdef DIAGNOSTIC
+#ifdef DEBUG_CACHE
/*
* Grab an atomic snapshot of the name cache hash chain lengths
*/