Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-17 Thread Guido Martínez
Hi Richard, On Mon, Nov 24, 2014 at 02:20:36PM +0100, Richard Weinberger wrote: > 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

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-17 Thread Guido Martínez
Hi Richard, On Mon, Nov 24, 2014 at 02:20:36PM +0100, Richard Weinberger wrote: 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

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-07 Thread Richard Weinberger
Am 07.12.2014 um 08:55 schrieb Tanya Brokhman: > Hi Richard > > On 12/5/2014 10:56 PM, Richard Weinberger wrote: -/** - * refill_wl_user_pool - refills all the fastmap pool used by ubi_wl_get_peb. - * @ubi: UBI device description object - */ -static void

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-07 Thread Richard Weinberger
Am 07.12.2014 um 08:55 schrieb Tanya Brokhman: Hi Richard On 12/5/2014 10:56 PM, Richard Weinberger wrote: -/** - * refill_wl_user_pool - refills all the fastmap pool used by ubi_wl_get_peb. - * @ubi: UBI device description object - */ -static void refill_wl_user_pool(struct ubi_device

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-06 Thread Tanya Brokhman
Hi Richard On 12/5/2014 10:56 PM, Richard Weinberger wrote: -/** - * refill_wl_user_pool - refills all the fastmap pool used by ubi_wl_get_peb. - * @ubi: UBI device description object - */ -static void refill_wl_user_pool(struct ubi_device *ubi) -{ -struct ubi_fm_pool *pool = >fm_pool; +

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-06 Thread Tanya Brokhman
Hi Richard On 12/5/2014 10:56 PM, Richard Weinberger wrote: -/** - * refill_wl_user_pool - refills all the fastmap pool used by ubi_wl_get_peb. - * @ubi: UBI device description object - */ -static void refill_wl_user_pool(struct ubi_device *ubi) -{ -struct ubi_fm_pool *pool = ubi-fm_pool; +

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-05 Thread Richard Weinberger
Tanya, Am 05.12.2014 um 18:55 schrieb Tanya Brokhman: > Hi Richard, > > On 11/24/2014 3:20 PM, Richard Weinberger wrote: >> 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

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-05 Thread Tanya Brokhman
Hi Richard, On 11/24/2014 3:20 PM, Richard Weinberger wrote: 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.

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-05 Thread Tanya Brokhman
Hi Richard, On 11/24/2014 3:20 PM, Richard Weinberger wrote: 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.

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-05 Thread Richard Weinberger
Tanya, Am 05.12.2014 um 18:55 schrieb Tanya Brokhman: Hi Richard, On 11/24/2014 3:20 PM, Richard Weinberger wrote: 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

[PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-11-24 Thread Richard Weinberger
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 --- drivers/mtd/ubi/wl.c | 77

[PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-11-24 Thread Richard Weinberger
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 rich...@nod.at ---