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

Neulinger, Nathan nneul@umr.edu
Fri, 5 Oct 2001 14:02:52 -0500


Actually, my change was specific to PARISC_LINUX24... but actually, using
the atomic_read/atomic_write interfaces if present would probably be a
better choice, as well as detecting which to use via a configure check.

-- Nathan

> -----Original Message-----
> From: Derek Atkins [mailto:warlord@MIT.EDU]
> Sent: Friday, October 05, 2001 2:00 PM
> To: Neulinger, Nathan
> Cc: 'Nickolai Zeldovich'; openafs-devel@openafs.org
> Subject: Re: [OpenAFS-devel] porting openafs to another linux 
> - problems
> w ith vRefcount type..
> 
> 
> Just make sure your change is specific to 2.4. :)
> 
> -derek
> 
> "Neulinger, Nathan" <nneul@umr.edu> writes:
> 
> > Oh. Ok. In that case, my patch to fix it for parisc should 
> fix it for the
> > others as well, it's just two lines of changes to make it use
> > i_count.counter instead in osi_vfs.h. 
> > 
> > -- Nathan
> > 
> > > -----Original Message-----
> > > From: Nickolai Zeldovich [mailto:kolya@MIT.EDU]
> > > Sent: Friday, October 05, 2001 1:52 PM
> > > To: openafs-devel@openafs.org
> > > Subject: Re: [OpenAFS-devel] porting openafs to another linux 
> > > - problems
> > > with vRefcount type..
> > > 
> > > 
> > > > What is going on special on parisc-linux (or on i386_linux) 
> > > that allows it
> > > > to work on one, but not on the other?
> > > 
> > > Nothing.  It doesn't build on i386_linux either now.  The latest
> > > change to automatically generate the vnode structure from struct
> > > inode made the refcount atomic_t instead of int.  I've sent a bug
> > > report to openafs-bugs@openafs.org about it, but haven't heard
> > > anything back yet.  Probably easiest workaround for now is to
> > > s/atomic_t/int/.
> > > 
> > > -- kolya
> > > _______________________________________________
> > > OpenAFS-devel mailing list
> > > OpenAFS-devel@openafs.org
> > > https://lists.openafs.org/mailman/listinfo/openafs-devel
> > > 
> > _______________________________________________
> > OpenAFS-devel mailing list
> > OpenAFS-devel@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-devel
> 
> -- 
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord@MIT.EDU                        PGP key available
>