From: Artem Bityutskiy Date: Fri, 30 Jul 2010 11:59:50 +0000 (+0300) Subject: UBI: do not warn unnecessarily X-Git-Tag: v2.6.36-rc1~586^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64d4b4c90a876401e503c3a3260e9d0ed066f271;p=pandora-kernel.git UBI: do not warn unnecessarily Currently, when UBI attaches an MTD device and cannot reserve all 1% (by default) of PEBs for bad eraseblocks handling, it prints a warning. However, Matthew L. Creech is not very happy to see this warning, because he did reserve enough of PEB at the beginning, but with time some PEBs became bad. The warning is not necessary in this case. This patch makes UBI print the warning o if this is a new image o of this is used image and the amount of reserved PEBs is only 10% (or less) of the size of the reserved PEB pool. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed