Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 68303564 authored by Richard Weinberger's avatar Richard Weinberger
Browse files

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: default avatarRichard Weinberger <richard@nod.at>
Reviewed-by: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
parent 691a8705
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment