Yes, the field can be used, presuming you are aware that the "u."
there means that it is a UNION of possibilities, each excluding
the others away.
> But it seems that there is no way to free such data when the inode gets
> flushed out of the inode cache (it can be still reused after
> super_ops->put_inode gets called).
>
> The only solution I see is to introduce a new super_op called from
> clear_inode to free such auxiliary data (see the patch below). Does
> anybody have a better idea?
Nope, this one is rather elegant on its own.
>
> Have a nice fortnight
> --
> Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
> Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
/Matti Aarnio <matti.aarnio@tele.fi>