From a9b5ba3454d82946c6009c5842bf54e386e1ccb0 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 18 Dec 2012 22:40:51 -0600 Subject: [PATCH] Put lookup_table_entry->extracted_file in union with num_opened_fds --- src/lookup_table.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lookup_table.h b/src/lookup_table.h index 0a1416ea..abd0ccbf 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -131,9 +131,17 @@ struct lookup_table_entry { size_t hash_short; }; - #ifdef WITH_FUSE - u16 num_opened_fds; - #endif + union { + #ifdef WITH_FUSE + u16 num_opened_fds; + #endif + + /* 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; + }; /* Pointers to somewhere where the stream is actually located. See the * comments for the @resource_location field above. */ @@ -193,12 +201,6 @@ struct lookup_table_entry { * This field is also used to make other lists of lookup table entries. * */ struct list_head staging_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; }; static inline u64 -- 2.43.0