Subject: Re: Memory leak?
To: Michael Graff <explorer@flame.org>
From: Charles M. Hannum <root@ihack.net>
List: tech-kern
Date: 11/22/1999 20:07:58
Michael Graff <explorer@flame.org> writes:

> Frank van der Linden <frank@wins.uva.nl> writes:
> 
> > D'oh! No wonder vnodes were never taken from the freelist.. Thanks!
> 
> Is there any reason vnodes are kept on a private free list, rather
> than being given back to the memory pool like ffsinodes are?

As we've gone over before, the implementation of vfs_cache.c requires
this.  If a vnode is freed, we have to be absolutely certain there are
no namei cache pointers pointing to it.

I even proposed (somewhere) a method for efficiently freeing vnodes in
chunks, without changing any data structures...