Provided by: linux-doc-2.6.15_2.6.15-23.39_all
generic_osync_inode - flush all dirty data for a given inode to disk
int generic_osync_inode (struct inode * inode,
struct address_space * mapping, int what);
inode inode to write
the address_space that should be flushed
what what to write and wait upon
This can be called by file_write functions for files which have the
O_SYNC flag set, to flush dirty writes to disk.
what is a bitmask, specifying which part of the inode’s data should be
written and waited upon.
i_mapping’s dirty data
the buffers at i_mapping->private_list
the inode itself