Commit 388f6b42 authored by Zhihao Cheng's avatar Zhihao Cheng
Browse files

ubi: fastmap: Check wl_pool for free peb before wear leveling

mainline inclusion
from mainline-v5.19-rc1
commit 14072ee3
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9195H
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=14072ee33d5a2a07d735b667205f99d0a95de9f2



-------------------------------------------------

UBI fetches free peb from wl_pool during wear leveling, so UBI should
check wl_pool's empty status before wear leveling. Otherwise, UBI will
miss wear leveling chances when free pebs are run out.

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
parent 5e9df50f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment