Improve the reading back of objects committed to the journal.
[bluesky.git] / bluesky / file.c
index cb9d5f0..34e103f 100644 (file)
@@ -231,6 +231,7 @@ void bluesky_block_fetch(BlueSkyInode *inode, BlueSkyBlock *block,
     bluesky_string_ref(block->data);
     g_mutex_unlock(block->cloudref->lock);
     block->type = BLUESKY_BLOCK_CACHED;
+    g_atomic_int_add(&inode->fs->cache_total, 1);
 }
 
 /* Write the given block to cloud-backed storage and mark it clean. */