]> wimlib.net Git - wimlib/commitdiff
struct wim_dentry: Union subdir_offset and tmp_list
authorEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 03:44:04 +0000 (22:44 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 03:50:07 +0000 (22:50 -0500)
include/wimlib/dentry.h

index 99b42c0b1c1fc851b99b3fa92556f2c121e7de1f..5067cfcca83d6e39e67ba9fcd892d7011f8e50be 100644 (file)
@@ -99,13 +99,15 @@ struct wim_dentry {
        /* Used by wimlib_update_image()  */
        u8 is_orphan : 1;
 
-       /* Temporary list field  */
-       struct list_head tmp_list;
-
-       /* 'subdir_offset' is only used while reading and writing this dentry.
-        * See the corresponding field in `struct wim_dentry_on_disk' for
-        * explanation.  */
-       u64 subdir_offset;
+       union {
+               /* 'subdir_offset' is only used while reading and writing this
+                * dentry.  See the corresponding field in `struct
+                * wim_dentry_on_disk' for explanation.  */
+               u64 subdir_offset;
+
+               /* Temporary list field  */
+               struct list_head tmp_list;
+       };
 
        /* Full path to this dentry in the WIM, in platform-dependent tchars
         * that can be printed without conversion.  By default this field will