Work to allow mmap-ed log entries to be used for data blocks.
[bluesky.git] / bluesky / cache.c
index 441e6c4..cdbc7c2 100644 (file)
@@ -22,6 +22,7 @@
  *   - Writing batches of data to the cloud.
  */
 
+#if 0
 static void writeback_complete(gpointer a, gpointer i)
 {
     BlueSkyInode *inode = (BlueSkyInode *)i;
@@ -46,6 +47,7 @@ static void writeback_complete(gpointer a, gpointer i)
 
     g_mutex_unlock(inode->lock);
 }
+#endif
 
 static void flushd_dirty_inode(BlueSkyInode *inode)
 {
@@ -78,17 +80,7 @@ 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