Subject: Re: make vnodes freeable
To: Bill Studenmund <wrstuden@netbsd.org>
From: Stephan Uphoff <ups@stups.com>
List: tech-kern
Date: 07/02/2003 21:04:51
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.


	Stephan