]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: integck: srink file_info structure even more
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 10:48:38 +0000 (13:48 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 14:44:44 +0000 (17:44 +0300)
The 'check_run_no' field does not have to be 64-bit, it can be
32-bit instead and we can save 4 bytes per object. Actually, it
could also be 16-bit, and we could make link_count 16-bit as well,
but that would need a bit more work.

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

index f203e3ab32f3946706d806ca9f219ce6ca9ca43f..0ff94c5b856a3627beb9ca7b2bfe6f770c907bd6 100644 (file)
@@ -60,9 +60,9 @@ struct file_info /* Each file has one of these */
        struct dir_entry_info *links;
        off_t length;
        int link_count;
+       unsigned int check_run_no; /* Run number used when checking */
        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 */
 };
 
 struct symlink_info /* Each symlink has one of these */
@@ -134,7 +134,7 @@ static int can_mmap = 0; /* Can write via mmap */
 
 static long mem_page_size; /* Page size for mmap */
 
-static uint64_t check_run_no;
+static unsigned int check_run_no;
 
 /*
  * Allocate a buffer of 'size' bytes and fill it with zeroes.