[OpenAFS-devel] using system inodes on linux

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Fri, 01 Jul 2005 14:54:57 -0400


In message <4BC52CD8919C7BF857C880AB@sphinx.andrew.cmu.edu>,Chaskiel M Grundman
 writes:
>Also, RHEL3's 2.4.21 base does not have the new super ops, so we'd want to
>retain the current code for some 2.4's, or do a bsd style split
>vnode/vcache implementation (the same thing you would need for 2.2).

i have updated the -head version to include support for older 2.4 kernels
which dont have alloc_inode super op (tested with autoconf so rebuild
with regen.sh first).  tested on a 2.4.18 kernel.  this probably also
works for 2.2 kernels.

a struct vcache is attach to inode->u.generic_ip during afs_NewVCache()
and is freed during clear_inode().  you could attempt to recycle these
via freeVClist but linux's kmalloc() is probably sufficient.