+
+ /* 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 dirty_list, accessed_list;
+
+ /* Mutex for the flush daemon, to prevent concurrent execution. */
+ GMutex *flushd_lock;