]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: integck: shrink dir_entry_info structure size
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 08:22:48 +0000 (11:22 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 14:44:44 +0000 (17:44 +0300)
Turn "int checked" flag into 'char' flag to lessen memory
consumption a bit. Indeed, the test allocates a lot of these
data objects, so the size decrease from 36 to 32 bytes on
32-bit platforms is good to have.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c

index 88def5869cc607b00422b97fac45d24679b36839..c00e67ed0197bfd603fa681a2b2056f628269693 100644 (file)
@@ -89,14 +89,14 @@ struct dir_entry_info /* Each entry in a directory has one of these */
        struct dir_entry_info *prev_link; /* List of hard links for same file */
        char *name;
        struct dir_info *parent; /* Parent directory */
-       char type; /* f => file, d => dir, s => symlink */
-       int checked; /* Temporary flag used when checking */
        union {
                struct file_info *file;
                struct dir_info *dir;
                struct symlink_info *symlink;
                void *target;
        };
+       char type; /* f => file, d => dir, s => symlink */
+       char checked; /* Temporary flag used when checking */
 };
 
 struct fd_info /* We keep a number of files open */