Subject: Re: make vnodes freeable
To: Stephan Uphoff <ups@stups.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 07/02/2003 19:04:43
On Wed, 2 Jul 2003, Stephan Uphoff wrote:

> Bill Studenmund wrote:
> >
> > I understand the invalidity of the namecache pointer.
> >
> > My question is why is this not an issue now? As soon as we reclaim a
> > vnode, those pointers are JUST as invalid as they would be after a free.
> > Why is this not an issue with the current code?
> >
>
> The current code uses the v_id field of the vnode to detect invalid
> name cache pointers.
> ( Follow the pointer - then see if the pointer is still valid)
> This works because currently a vnode will always be a vnode.
> However once you return the storage to the kernel all bets are off.

Ahhh, yes, that would be a good reason.

Take care,

Bill