aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-02-05 22:58:27 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-02-05 23:28:40 +0000
commit0e1594e60e5e0b1fddc33225171f1d1c6a421ed4 (patch)
tree413df85b831b46c44df3270ece0077cfc1e8e13b /sys
parent2e96132a7d8bbb2347a3b4776806324f984aa49f (diff)
downloadsrc-0e1594e60e5e0b1fddc33225171f1d1c6a421ed4.tar.gz
src-0e1594e60e5e0b1fddc33225171f1d1c6a421ed4.zip
cache: fix vfs:namecache:lookup:miss probe call sites
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cache.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 5cfc23779c42..50ec6face6ac 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1767,7 +1767,7 @@ retry:
mtx_lock(dvlp);
ncp = dvp->v_cache_dd;
if (ncp == NULL) {
- SDT_PROBE3(vfs, namecache, lookup, miss, dvp, "..", NULL);
+ SDT_PROBE2(vfs, namecache, lookup, miss, dvp, "..");
mtx_unlock(dvlp);
return (0);
}
@@ -1894,8 +1894,7 @@ retry:
if (__predict_false(ncp == NULL)) {
mtx_unlock(blp);
- SDT_PROBE3(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr,
- NULL);
+ SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr);
counter_u64_add(nummiss, 1);
return (0);
}
@@ -1990,8 +1989,7 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
if (__predict_false(ncp == NULL)) {
vfs_smr_exit();
- SDT_PROBE3(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr,
- NULL);
+ SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr);
counter_u64_add(nummiss, 1);
return (0);
}