aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-11 13:07:26 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-18 17:44:44 +0300
commit3c580f6093ffab3b4ca301da4a9977cf004c7a09 (patch)
tree83f434fc4ca5a9fa13d6c80c1f01b14de4b2bed5 /tests/fs-tests
parent54ae0e83d0693612c9e0a611787b66c44209de9c (diff)
fs-tests: integck: shrink file_info structure size
We do not have to store boolean flags in 'int' variables which consume 4 bytes each, we can store those in bit-fields instead. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests')
-rw-r--r--tests/fs-tests/integrity/integck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index c00e67e..f203e3a 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -58,10 +58,10 @@ struct file_info /* Each file has one of these */
/* Record in order all writes to the file */
struct fd_info *fds; /* All open file descriptors for this file */
struct dir_entry_info *links;
- int link_count;
off_t length;
- int deleted; /* File has been deleted but is still open */
- int no_space_error; /* File has incurred a ENOSPC error */
+ int link_count;
+ unsigned int deleted:1; /* File has been deleted but is still open */
+ unsigned int no_space_error:1; /* File has incurred a ENOSPC error */
uint64_t check_run_no; /* Run number used when checking */
};