+ * gradually flushed.
+ *
+ * We do not want to hold the filesystem lock while flushing individual inodes,
+ * a that could lead to deadlock. So first scan through the inode table to get
+ * a reference to all inodes, then process that queue of inodes after dropping
+ * the filesystem lock. */
+static void gather_inodes(gpointer key, gpointer value, gpointer user_data)
+{
+ GSList **list = (GSList **)user_data;
+ *list = g_slist_prepend(*list, value);
+ bluesky_inode_ref((BlueSkyInode *)value);
+}
+