Track journal files which contain dirty data and which can be reclaimed.
[bluesky.git] / bluesky / debug.c
index 207cb7b..0a5f254 100644 (file)
@@ -56,9 +56,9 @@ static void cache_dump(gpointer key, gpointer value, gpointer user_data)
     BlueSkyCacheFile *cache = (BlueSkyCacheFile *)value;
 
     int64_t age = bluesky_get_current_time() - cache->atime;
-    g_print("%s addr=%p mapcount=%d refcount=%d atime_age=%f",
+    g_print("%s addr=%p mapcount=%d refcount=%d dirty=%d atime_age=%f",
             cache->filename, cache->addr, cache->mapcount, cache->refcount,
-            age / 1e6);
+            cache->dirty_refs, age / 1e6);
     if (cache->fetching)
         g_print(" (fetching)");
     g_print("\n");