From: Artem Bityutskiy Date: Wed, 7 Mar 2012 17:08:36 +0000 (+0200) Subject: UBI: fix eraseblock picking criteria X-Git-Tag: v3.2.14~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8617e195f2213c885c5aae3578c545a5ace9477b;p=pandora-kernel.git UBI: fix eraseblock picking criteria commit 7eb3aa65853e1b223bfc786b023b702018cb76c0 upstream. The 'find_wl_entry()' function expects the maximum difference as the second argument, not the maximum absolute value. So the "unknown" eraseblock picking was incorrect, as Shmulik Ladkani spotted. This patch fixes the issue. Reported-by: Shmulik Ladkani Signed-off-by: Artem Bityutskiy Reviewed-by: Shmulik Ladkani Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed