From: Richard Genoud Date: Fri, 29 Jun 2012 06:57:41 +0000 (+0200) Subject: UBI: Change the default percentage of reserved PEB X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=54de1f1c44c3522dbdc2201be1f65e733526de51;p=deliverable%2Flinux.git UBI: Change the default percentage of reserved PEB The actual value (1%) is too low for actual NAND devices, a huge majority of device has 2% maximum bad blocks (SLC or MLC). (Actually it's 20 blocks on a 1024 blocks device, 40/2048...) Signed-off-by: Richard Genoud --- diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 738ee8dc16cd..ea4b95b5451c 100644 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig @@ -29,7 +29,7 @@ config MTD_UBI_WL_THRESHOLD config MTD_UBI_BEB_RESERVE int "Percentage of reserved eraseblocks for bad eraseblocks handling" - default 1 + default 2 range 0 25 help If the MTD device admits of bad eraseblocks (e.g. NAND flash), UBI