From 9bf081f084e4576abe8001c7a3671013a574fb61 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 25 May 2014 22:44:04 -0500 Subject: [PATCH] struct wim_dentry: Union subdir_offset and tmp_list --- include/wimlib/dentry.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/wimlib/dentry.h b/include/wimlib/dentry.h index 99b42c0b..5067cfcc 100644 --- a/include/wimlib/dentry.h +++ b/include/wimlib/dentry.h @@ -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 -- 2.46.1