From 6830356466a57db21c7bc31bf3be4e61189e145b Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Mon, 10 Nov 2014 15:39:17 +0100 Subject: [PATCH] UBI: Fastmap: Make ubi_refill_pools() fair MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed