aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2023-09-23 00:08:49 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2023-09-30 04:37:14 +0000
commit0cf6ebad73640a20fe99adacba635e2630be5d08 (patch)
treeccaf9e491c26f62cb8ac011f45cc933d7c28d9a7
parent3f4e6aa2ae7c5d7b086f76e7ec445ec71a60a627 (diff)
downloadsrc-0cf6ebad73640a20fe99adacba635e2630be5d08.tar.gz
src-0cf6ebad73640a20fe99adacba635e2630be5d08.zip
vfs cache: retire dothits and dotdothits counters
They demonstrate nothing, and in case of dotdot they are not even hits. This is just a count of lookups with "..", which are not worth mentioniong. (cherry picked from commit bb124a0f611a1288c8496e3b33494f23ba929ca1)
-rw-r--r--sys/kern/vfs_cache.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 1edd8fad0e89..12b9f2d74641 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -530,8 +530,6 @@ STATNODE_ULONG(neg, numneg, "Number of negative cache entries");
STATNODE_ULONG(count, numcache, "Number of cache entries");
STATNODE_COUNTER(heldvnodes, numcachehv, "Number of namecache entries with vnodes held");
STATNODE_COUNTER(drops, numdrops, "Number of dropped entries due to reaching the limit");
-STATNODE_COUNTER(dothits, dothits, "Number of '.' hits");
-STATNODE_COUNTER(dotdothits, dotdothits, "Number of '..' hits");
STATNODE_COUNTER(miss, nummiss, "Number of cache misses");
STATNODE_COUNTER(misszap, nummisszap, "Number of cache misses we do not want to cache");
STATNODE_COUNTER(poszaps, numposzaps,
@@ -1782,7 +1780,6 @@ cache_lookup_dot(struct vnode *dvp, struct vnode **vpp, struct componentname *cn
int ltype;
*vpp = dvp;
- counter_u64_add(dothits, 1);
SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp);
if (tsp != NULL)
timespecclear(tsp);
@@ -1827,7 +1824,6 @@ cache_lookup_dotdot(struct vnode *dvp, struct vnode **vpp, struct componentname
return (0);
}
- counter_u64_add(dotdothits, 1);
retry:
dvlp = VP2VNODELOCK(dvp);
mtx_lock(dvlp);
@@ -5131,7 +5127,6 @@ cache_fplookup_dot(struct cache_fpl *fpl)
fpl->tvp = fpl->dvp;
fpl->tvp_seqc = fpl->dvp_seqc;
- counter_u64_add(dothits, 1);
SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp);
error = 0;
@@ -5220,7 +5215,6 @@ cache_fplookup_dotdot(struct cache_fpl *fpl)
return (cache_fpl_aborted(fpl));
}
- counter_u64_add(dotdothits, 1);
return (0);
}