aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-06-06 05:50:07 +0200
committerArnd Bergmann <arnd@arndb.de>2012-06-06 05:50:07 +0200
commit2e30b1968a66147412f21002ea844122a0d5e2f0 (patch)
treeba236d322d2e6a9031ecad7ea20366bc6070de01
parent90dd6ca64647579a774a510422ca7e55beb666c7 (diff)
flashbench: use only one out of 12 erase blocksHEADmaster
This helps with TLC memory when while guessing the erase block size, so that the guessed erase block start is at the start of the actual erase block. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--flashbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashbench.c b/flashbench.c
index 0a1016f..5fffe63 100644
--- a/flashbench.c
+++ b/flashbench.c
@@ -538,7 +538,7 @@ static int try_open_au(struct device *dev, unsigned int erasesize,
{ (random ? O_OFF_RAND : O_OFF_LIN),
erasesize / blocksize, -1},
{O_REDUCE, .aggregate = A_AVERAGE},
- {O_OFF_RAND, count, 4 * erasesize}, {O_WRITE_RAND},
+ {O_OFF_RAND, count, 12 * erasesize}, {O_WRITE_RAND},
{O_NEWLINE},
{O_END},
{O_END},