UBI: Fastmap: Make WL pool size 50% of user pool size
[deliverable/linux.git] / drivers / mtd / ubi / build.c
index 112a66c6596695cbec9abaca1028442823904853..59af91b41f9a4dd48d129f93f6aa5906444b1965 100644 (file)
@@ -949,7 +949,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
        if (ubi->fm_pool.max_size < UBI_FM_MIN_POOL_SIZE)
                ubi->fm_pool.max_size = UBI_FM_MIN_POOL_SIZE;
 
-       ubi->fm_wl_pool.max_size = UBI_FM_WL_POOL_SIZE;
+       ubi->fm_wl_pool.max_size = ubi->fm_pool.max_size / 2;
        ubi->fm_disabled = !fm_autoconvert;
 
        if (!ubi->fm_disabled && (int)mtd_div_by_eb(ubi->mtd->size, ubi->mtd)
This page took 0.04106 seconds and 5 git commands to generate.