Commit 02f9f25b authored by Zhihao Cheng's avatar Zhihao Cheng
Browse files

ubi: fastmap: erase_block: Get erase counter from wl_entry rather than flash

mainline inclusion
from mainline-v6.7-rc1
commit 08a4267874164b2e9c8c50831acd466f47208acc
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=08a4267874164b2e9c8c50831acd466f47208acc



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

Just like sync_erase() does, getting erase counter from wl_entry is
faster than reading from flash.

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