From a110fa2ee11976d988bcb6e56b0978aa1c46c2f4 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 14 Jul 2020 21:17:46 +0000 Subject: [PATCH] cache: remove numcalls The counter is not very useful and if necessary the value can be found by summing up other counters. --- sys/kern/vfs_cache.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 6ac718a59d3f..d46e8d7bbff6 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -407,7 +407,6 @@ static SYSCTL_NODE(_vfs, OID_AUTO, cache, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, STATNODE_ULONG(numneg, "Number of negative cache entries"); STATNODE_ULONG(numcache, "Number of cache entries"); STATNODE_COUNTER(numcachehv, "Number of namecache entries with vnodes held"); -STATNODE_COUNTER(numcalls, "Number of cache lookups"); STATNODE_COUNTER(numdrops, "Number of dropped entries due to reaching the limit"); STATNODE_COUNTER(dothits, "Number of '.' hits"); STATNODE_COUNTER(dotdothits, "Number of '..' hits"); @@ -1385,8 +1384,6 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, } #endif - counter_u64_add(numcalls, 1); - if (__predict_false(cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.')) return (cache_lookup_dot(dvp, vpp, cnp, tsp, ticksp));