+ BlueSkyLog *log;
+ BlueSkyCloudLogState *log_state;
+
+ /* Accounting for memory used for caches. Space is measured in blocks, not
+ * bytes. We track both total data in the caches and dirty data (total
+ * data includes dirty data). Updates to these variables must be made
+ * atomically. */
+ gint cache_total, cache_dirty;
+
+ /* Linked list of inodes, sorted by access/modification times for cache
+ * management. Editing these lists is protected by the filesystem lock; to
+ * avoid deadlock do not attempt to take any other locks while the FS lock
+ * is held for list editing purposes. Items at the head of the list are
+ * most recently accessed/modified. */
+ GList unlogged_list; // Changes not yet synced to journal
+ GList dirty_list; // Not yet written to cloud storage
+ GList accessed_list; // All in-memory inodes
+
+ /* Mutex for the flush daemon, to prevent concurrent execution. */
+ GMutex *flushd_lock;
+
+ /* Mapping of object identifiers (blocks, inodes) to physical location (in
+ * the local cache or in the logs in the cloud). */
+ GHashTable *locations;