[RFC PATCH 2/2] mtd: ubi: wl: avoid erasing a PEB which is empty
Artem Bityutskiy
dedekind1 at gmail.com
Tue Nov 24 08:40:18 EST 2015
On Tue, 2015-11-24 at 14:33 +0100, Sebastian Andrzej Siewior wrote:
> What will happen next? When will e1
> be removed from the protection list?
If my memory still serves me, the answer is: roughly speaking, after a
number of erase operation, which is currently defined as
/*
* Length of the protection queue. The length is effectively equivalent t o the
* number of (global) erase cycles PEBs are protected from the wear-leveling
* worker.
*/
#define UBI_PROT_QUEUE_LEN 10
But if you put it to the head of the protection queue, it'll be removed
from there as soon as any LEB is "put", which effectively means
"scheduled for erasure".
Artem.
More information about the linux-mtd
mailing list