diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-11 14:55:49 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-18 17:44:44 +0300 |
commit | 544833ec2a08fef12913c32543f2d815220d9683 (patch) | |
tree | 0a560e52a2107542a4b6c21549ea9e73c49171bd /tests/ubi-tests/io_update.c | |
parent | 191071e9fcb711cd89c8c57e51937da525039c8b (diff) |
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>
Diffstat (limited to 'tests/ubi-tests/io_update.c')
0 files changed, 0 insertions, 0 deletions