cache: hide hash stats behind DEBUG_CACHE

They take a long time to dump and hinder sysctl -a when used with
DIAGNOSTIC.
This commit is contained in:
Mateusz Guzik 2022-03-03 17:21:13 +00:00
parent f3f3e3c44d
commit afb08a6d07

View File

@ -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
*/