summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-11 11:22:48 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-18 17:44:44 +0300
commit54ae0e83d0693612c9e0a611787b66c44209de9c (patch)
treec2192d90769f8625d52e987689887c6e16e0031a /tests
parent3c4668cfa1817dfd4d377ba1a966104d6edda1c0 (diff)
fs-tests: integck: shrink dir_entry_info structure size
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/integrity/integck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 88def58..c00e67e 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -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 */