diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-12 02:01:20 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-03-12 02:01:20 +0000 |
| commit | 47f196941e038bfefd4e8d5d0a7bcd5d9232f93d (patch) | |
| tree | d89397376048752a26370fd0ac91ea1e9958c238 /sys/kern/vfs_cache.c | |
| parent | dc0b7482de40a5f221cd1bb451e8e16cd6754ace (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_cache.c')
| -rw-r--r-- | sys/kern/vfs_cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 9a36a62c2ad5..16d1196aebc3 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); } |
