ubi: fastmap: erase_block: Get erase counter from wl_entry rather than flash
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 28 Aug 2023 06:38:35 +0000 (14:38 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 28 Oct 2023 20:32:58 +0000 (22:32 +0200)
commit08a4267874164b2e9c8c50831acd466f47208acc
tree2e5fc76227813d51c5a4da1f5c2f88fc615c7420
parent4d18b5a57b16c21cf868369ca555068722c32b2d
ubi: fastmap: erase_block: Get erase counter from wl_entry rather than flash

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

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c