From: Richard Weinberger Date: Mon, 10 Nov 2014 14:39:17 +0000 (+0100) Subject: UBI: Fastmap: Make ubi_refill_pools() fair X-Git-Tag: omap-for-v4.1/fixes-rc1~135^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6830356466a57db21c7bc31bf3be4e61189e145b;p=pandora-kernel.git UBI: Fastmap: Make ubi_refill_pools() fair Currently ubi_refill_pools() first fills the first and then the second one. If only very few free PEBs are available the second pool can get zero PEBs. Change ubi_refill_pools() to distribute free PEBs fair between all pools. Signed-off-by: Richard Weinberger Reviewed-by: Guido Martínez --- Reading git-diff-tree failed