diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-02-19 22:52:05 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-02-19 22:52:05 +0100 |
commit | ee2ef6ff0f29bea0aac60663812c67df59b421e7 (patch) | |
tree | 54ea501bcda54f556d7246b1f1ff2e619da1bde5 /flashbench.c | |
parent | 1dad8fc1104985b1086ad4db1c3f04f69cf14c10 (diff) |
flashbench: fix FAT benchmark
Random needs to be applied to blocks in the segment,
not the order of blocks.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'flashbench.c')
-rw-r--r-- | flashbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flashbench.c b/flashbench.c index c2e8325..a31e479 100644 --- a/flashbench.c +++ b/flashbench.c @@ -520,11 +520,11 @@ static int try_find_fat(struct device *dev, unsigned int erasesize, /* print one line of aggregated per second results */ {O_PRINTF}, {O_FORMAT}, - {random ? O_OFF_RAND : O_OFF_LIN, count, erasesize}, + {O_OFF_LIN, count, erasesize}, /* linear write 0x5a */ {O_REDUCE, .aggregate = A_MAXIMUM}, {O_REPEAT, 1}, {O_REDUCE, .aggregate = A_AVERAGE}, - {O_OFF_LIN, erasesize / blocksize, -1}, + {random ? O_OFF_RAND : O_OFF_LIN, erasesize / blocksize, -1}, {O_BPS},{O_WRITE_RAND}, {O_NEWLINE}, {O_END}, |