summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-12 02:01:20 +0000
committerphk <phk@FreeBSD.org>1995-03-12 02:01:20 +0000
commit6d3911a9520b2b5fdf4c84b7d17d9229af252e82 (patch)
treed89397376048752a26370fd0ac91ea1e9958c238 /sys/kern/vfs_cache.c
parent23cf905bbeb90c01f21e448644774c3062fd7660 (diff)
downloadFreeBSD-src-6d3911a9520b2b5fdf4c84b7d17d9229af252e82.zip
FreeBSD-src-6d3911a9520b2b5fdf4c84b7d17d9229af252e82.tar.gz
Update a couple of counters.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 9a36a62..16d1196 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_cache.c 8.3 (Berkeley) 8/22/94
- * $Id: vfs_cache.c,v 1.9 1995/03/10 20:26:29 davidg Exp $
+ * $Id: vfs_cache.c,v 1.10 1995/03/10 20:29:51 davidg Exp $
*/
#include <sys/param.h>
@@ -140,6 +140,7 @@ cache_lookup(dvp, vpp, cnp)
/* If one of the vp's went stale, don't bother anymore. */
if ((ncp->nc_dvpid != ncp->nc_dvp->v_id) ||
(ncp->nc_vpid != ncp->nc_vp->v_id)) {
+ nchstats.ncs_falsehits++;
PURGE(ncp);
continue;
}
@@ -172,6 +173,7 @@ cache_lookup(dvp, vpp, cnp)
/* We found a negative match, and want to create it, so purge */
if (cnp->cn_nameiop == CREATE) {
+ nchstats.ncs_badhits++;
PURGE(ncp);
return (0);
}
OpenPOWER on IntegriCloud