Writing Inodes Back To Disk
Writing inodes back to disk is done using the super-block's write_inode
operation, and the stamfs_write_inode() function, which simply invokes
stamfs_inode_write_ino():
- Load the inode's block from disk.
- Update it with data from the VFS inode struct.
- Mark the inode's buffer_head as dirty - it'll be written by bdflush or
during unmount.
- Unless we were asked to do this synchronously - in which case we force
an immediate buffer_head write.
Originally written by
guy keren