diff options
author | Richard Weinberger <richard@nod.at> | 2014-11-10 15:39:17 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 22:17:47 +0100 |
commit | 6830356466a57db21c7bc31bf3be4e61189e145b (patch) | |
tree | 881282f4d06ed98f9aed6bbfaa4b3dbc32b588c8 /drivers/mtd/ubi/fastmap.c | |
parent | 691a870563b4fe9e014a309477fb8f9fe41b36bb (diff) | |
download | lwn-6830356466a57db21c7bc31bf3be4e61189e145b.tar.gz lwn-6830356466a57db21c7bc31bf3be4e61189e145b.zip |
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 <richard@nod.at>
Reviewed-by: Guido Martínez <guido@vanguardiasur.com.ar>
Diffstat (limited to 'drivers/mtd/ubi/fastmap.c')
0 files changed, 0 insertions, 0 deletions