![]() | |||||||||||||
Messages in this thread |
> Hi, > > I'm now playing with some filesystem capable of >4G files and I need to > store lot of data (approx. 1K) per inode, so I decided to use the > inode->u.generic_ip field to point to my local data instead of putting > it directly to the inode structure. 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> | ||||||||||||
| Last update: 2005-03-22 12:41 [W:0.139 / U:0.200 seconds] ©2003-2008 Jasper Spaans | |||||||||||||