(Mostly) merge local and cloud logging together.
[bluesky.git] / bluesky / cache.c
index 441e6c4..587f98b 100644 (file)
@@ -78,17 +78,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