* - Writing batches of data to the cloud.
*/
+#if 0
static void writeback_complete(gpointer a, gpointer i)
{
BlueSkyInode *inode = (BlueSkyInode *)i;
g_mutex_unlock(inode->lock);
}
+#endif
static void flushd_dirty_inode(BlueSkyInode *inode)
{
}
inode->change_pending = inode->change_count;
- /* Create a store barrier. All operations part of the writeback will be
- * added to this barrier, so when the barrier completes we know that the
- * writeback is finished. */
- BlueSkyStoreAsync *barrier = bluesky_store_async_new(fs->store);
- barrier->op = STORE_OP_BARRIER;
-
- bluesky_inode_start_sync(inode, barrier);
-
- bluesky_store_async_add_notifier(barrier, writeback_complete, inode);
- bluesky_store_async_submit(barrier);
- bluesky_store_async_unref(barrier);
+ bluesky_inode_start_sync(inode);
}
/* Try to flush dirty data to disk, either due to memory pressure or due to