diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2023-08-28 14:38:37 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-10-28 22:34:24 +0200 |
commit | c19286d70aaa361cdb073a68a1f66232c359e2fd (patch) | |
tree | 80e22d6eac64c8ab4014ba81642ab87257b6312c /drivers/mtd/ubi/ubi.h | |
parent | a033ab4fec5fd9194d1b6c0306efbdc75f70b142 (diff) | |
download | lwn-c19286d70aaa361cdb073a68a1f66232c359e2fd.tar.gz lwn-c19286d70aaa361cdb073a68a1f66232c359e2fd.zip |
ubi: Replace erase_block() with sync_erase()
Since erase_block() has same logic with sync_erase(), just replace it
with sync_erase(), also rename 'sync_erase()' to 'ubi_sync_erase()'.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index c8f1bd4fa100..2f0c0eacc013 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -902,6 +902,7 @@ int self_check_eba(struct ubi_device *ubi, struct ubi_attach_info *ai_fastmap, struct ubi_attach_info *ai_scan); /* wl.c */ +int ubi_sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, int torture); int ubi_wl_get_peb(struct ubi_device *ubi); int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum, int pnum, int torture); |