Subject: Re: mount_mfs (with mount_null) won't reclaim space
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 03/18/2002 19:03:47
On 19 Mar 2002, enami tsugutomo wrote:

> Bill Studenmund <wrstuden@netbsd.org> writes:
>
> > Does it? Last time I looked, the code which checks usage count (and does
> > nothing if the usage count is > 1) is in miscfs/specfs/spec_vnops.c in the
> > close routine, specifically spec_close(). With a vcount() that ignores
> > upper-layered vnodes (like the ones we have now), this count will be only
> > that of the lower node, which in this case only has the one reference from
> > the upper node.
>
> Hmm. I've misread the code.

All of this stuff is hard to read. I've misread things in this thread, and
before it. :-)

Years ago, Perry bugged me for a document on the vnode locking protocol. I
probably should do it. :-)

Take care,

Bill