"Cleanly" Release Inodes
When we read the inode, we attached a meta-information structure to the inode
object. When the system frees this object, we need to clear this memory. This
is done by implementing the 'clear_inode' super-block operation:
- Get the pointer to the meta-data structure.
- Free it.
- Set the original pointer to NULL - the inode object might be re-used
later on...
Here is the just-mountable STAMFS code.
Originally written by
guy keren