Subject: Re: rehashing after "sysctl -w kern.maxvnodes=..."
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 09/13/2001 06:34:14
On Thu, Sep 13, 2001 at 04:19:19PM +0900, enami tsugutomo wrote:
> Chuck Silvers <chuq@chuq.com> writes:
> 
> > -		for (dp = *dpp; dp != NULL; dp = dq)
> > -			dq = dp->d_next;
> > +		for (dp = LIST_FIRST(dpp); dp != NULL; dp = dp) {
> > +			dq = LIST_NEXT(dp, d_hash);
> 
> s/dp = dp/dp = dq/

wouldn't you know I'd botch something in one part I didn't test...
I looked at enabling the bit that actually calls this code,
but it appears that the VOP_MKNOD() interface has changed such that
this ISODEVMAP hack is no longer possible.  perhaps we should just
remove the code entirely.


> > @@ -78,7 +78,6 @@
> >  void
> >  nfs_nhinit()
> >  {
> > -
> >  	nfsnodehashtbl = hashinit(desiredvnodes, HASH_LIST, M_NFSNODE,
> >  	    M_WAITOK, &nfsnodehash);
> >  	lockinit(&nfs_hashlock, PINOD, "nfs_hashlock", 0, 0);
> 
> I like this empty line which knf requires.

that's part of KNF?  sheesh.  ok, I put it back.

-Chuck