diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-03-10 20:26:29 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-03-10 20:26:29 +0000 |
| commit | dbd90d413ff4d30c32245a7ee5a453f257cfa255 (patch) | |
| tree | eeca45071faff6cc08943e269edc829ac0928dc6 /sys/kern/vfs_cache.c | |
| parent | 8950c0148b2994eedb20d7adbc4a61616f93a583 (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_cache.c')
| -rw-r--r-- | sys/kern/vfs_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index e8ebe874df4d..e447ecb342c0 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.7 1995/03/08 01:40:44 phk Exp $ + * $Id: vfs_cache.c,v 1.8 1995/03/09 20:23:45 phk Exp $ */ #include <sys/param.h> @@ -203,7 +203,7 @@ cache_enter(dvp, vp, cnp) return; } - if (numcache < numvnodes) { + if (numcache < numvnodes || numvnodes < desiredvnodes) { /* Add one more entry */ ncp = (struct namecache *) malloc((u_long)sizeof *ncp, M_CACHE, M_WAITOK); |
