[OpenAFS-devel] porting openafs to another linux - problems w ith vRefcount type..

Chaskiel M Grundman cg2v+@andrew.cmu.edu
Fri, 5 Oct 2001 17:42:12 -0400 (EDT)


Excerpts from internet.computing.openafs.devel: 5-Oct-101 Re:
[OpenAFS-devel] porting.. by Nickolai Zeldovich@MIT.E 
> It looks like all we'd need to do is convert the refcount increments
> and decrements into VN_HOLD/VN_RELE calls (and of course make VN_HOLD
> an atomic_inc), and convert the rest to use something like these:

Not all decrements should become VN_RELE's. VN_RELE calls into the
kernel, and may do stuff when the refcount drops to 0. Stuff that
whoever chose to use tvc->vrefCount-- instead of AFS_RELE/VN_RELE may
not have wanted to happen. I don't know that there are any of these
left, but I had some in the darwin code at one time (They're gone now,
not so much because I found another way to do it, but because apple made
a change to their kernel that made it unnecesary).