From: Artem Bityutskiy Date: Wed, 7 Mar 2012 17:08:36 +0000 (+0200) Subject: UBI: fix eraseblock picking criteria X-Git-Tag: v3.4-rc1~119^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eb3aa65853e1b223bfc786b023b702018cb76c0;p=pandora-kernel.git UBI: fix eraseblock picking criteria 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 Cc: stable@kernel.org --- Reading git-diff-tree failed