From 2e30b1968a66147412f21002ea844122a0d5e2f0 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Wed, 6 Jun 2012 05:50:07 +0200 Subject: flashbench: use only one out of 12 erase blocks 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 --- flashbench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- cgit v1.2.3