/* helper function for fat_flush_inodes. This writes both the inode and the file data blocks, waiting for in flight data blocks before the start of the call. It does not wait for any io started during the call  */
static int writeback_inode(struct inode *inode)
/* helper function for fat_flush_inodes. This writes both the inode and the file data blocks, waiting for in flight data blocks before the start of the call. It does not wait for any io started during the call  */
static int writeback_inode(struct inode *inode)
{
	int ret;
	struct address_space *mapping = inode->i_mapping;
	struct writeback_control wbc = {
	       .sync_mode = WB_SYNC_NONE,
	      .nr_to_write = 0,
	};
	ret = sync_inode(inode, &wbc);
	if (!ret)
	       ret = filemap_fdatawrite(mapping);
	return ret;
}