From: Shmulik Ladkani Date: Wed, 4 Jul 2012 08:06:04 +0000 (+0300) Subject: UBI: harmonize the update of ubi->beb_rsvd_pebs X-Git-Tag: v3.6-rc1~149^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e773c95eb0b363f2efcc7aff8a347dc18925d0;p=pandora-kernel.git UBI: harmonize the update of ubi->beb_rsvd_pebs Currently, there are several locations where an attempt to reserve more PEBs for bad PEB handling is made, with the same code being duplicated. Harmonize it by introducing 'ubi_update_reserved()'. Also, improve the debug message issued, making it more descriptive. Artem: amended the patch a little. Signed-off-by: Shmulik Ladkani Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed