[OpenAFS-devel] RE: [OpenAFS] linux 2.4.2

Chas Williams chas@cmf.nrl.navy.mil
Wed, 18 Apr 2001 15:08:15 -0400


>*laugh* no actually - missed that... then why are we keeping a copy of
>struct inode then if such a hook exists, couldn't we accomplish everything
>just by attaching something to the hook?

actually the problem could be fixed w/o the hook.  you would just typedef
struct inode vnode and then use that everywhere.  however, quite a bit
of the code says 'struct vnode *foo' which you would need to rewrite
vnode *foo.   this means you need to change all the other ports to have
the same vnode typdef.  you cant typedef 'struct inode' into 'struct vnode'. 
i mean to do this sometime.  it might be better to just typedef struct vnode
into something like osi_inode and use osi_inode instead.  just a thought.
it should be mostly the right idea but i sometimes get confused.