- struct resource_entry output_resource_entry;
-
- /* Circular linked list of streams that share the same lookup table
- * entry
- *
- * This list of streams may include streams from different hard link
- * sets that happen to be the same. */
- struct list_head lte_group_list;
-
- /* List of lookup table entries that correspond to streams that have
- * been extracted to the staging directory when modifying a read-write
- * mounted WIM. */
- struct list_head staging_list;
+
+ u32 real_refcnt;
+
+ /* When a WIM file is written, @output_resource_entry is filled
+ * in with the resource entry for the output WIM. This will not
+ * necessarily be the same as the @resource_entry since:
+ * - The stream may have a different offset in the new WIM
+ * - The stream may have a different compressed size in the
+ * new WIM if the compression type changed
+ */
+ union {
+ struct resource_entry output_resource_entry;
+ struct list_head msg_list;
+ };
+
+ /* This field is used for the special hardlink or symlink image
+ * extraction mode. In these mode, all identical files are linked
+ * together, and @extracted_file will be set to the filename of the
+ * first extracted file containing this stream. */
+ char *extracted_file;
+
+ union {
+ /* List of lookup table entries that correspond to streams that have
+ * been extracted to the staging directory when modifying a read-write
+ * mounted WIM. */
+ struct list_head staging_list;
+
+ /* Temporary field for creating a singly linked list. */
+ struct lookup_table_entry *next_lte_in_swm;
+ };