+/* For an inode which has been modified by the cleaner and must be flushed out
+ * to cloud storage, mark it as appropriately dirty. We will bypass writingt
+ * the inode to the journal if possible--but if there have ben other
+ * uncommitted changes besides what the cleaner did then we will force a
+ * journal write as well since the cloud shouldn't contain newer data than the
+ * journal. Inode must be locked. */
+static void cleaner_flush_inode(BlueSkyInode *inode)
+{
+ // if (inode->change_commit != inode->change_count) {
+ if (TRUE) {
+ /* bluesky_inode_start_sync schedules a flush to the cloud so we're all
+ * done. */
+ bluesky_inode_start_sync(inode);
+ return;
+ }
+
+ g_assert(inode->unlogged_list == NULL);
+
+ bluesky_list_unlink(&inode->fs->dirty_list, inode->dirty_list);
+ inode->dirty_list = bluesky_list_prepend(&inode->fs->dirty_list, inode);
+ inode->change_cloud = inode->change_count;
+}
+