]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: shrink write_info even more
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 11:55:49 +0000 (14:55 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 14:44:44 +0000 (17:44 +0300)
commit544833ec2a08fef12913c32543f2d815220d9683
tree0a560e52a2107542a4b6c21549ea9e73c49171bd
parent191071e9fcb711cd89c8c57e51937da525039c8b
fs-tests: integck: shrink write_info even more

The 'struct write_info' data strucutre records information about
truncation, and has a separate integer field to specify if this is
a truncation or not. But it is too wasteful because we have huge
amount of these objects.

But it is easy to notice that the 'random_seed' field is not used
for truncation records, so we can use that as the truncation flag.

This patch introduces MAX_RANDOM_SEED macro and when the 'random_seed'
field is greater than that, we treat it as the truncation flag.

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