ubi: Split io_failures into write_failure and erase_failure
authorZhaoLong Wang <wangzhaolong1@huawei.com>
Tue, 26 Dec 2023 01:01:10 +0000 (09:01 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 6 Jan 2024 22:39:29 +0000 (23:39 +0100)
commite30948f7c0730d9fb2271ff3eadd43eda4e44740
tree13f97eec2dcc10674324dd4ed7ee6e1a8df1154d
parent6931fb44858c3b9da9f35fdc8d9cbeef0b4b50a3
ubi: Split io_failures into write_failure and erase_failure

The emulate_io_failures debugfs entry controls both write
failure and erase failure. This patch split io_failures
to write_failure and erase_failure.

Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/debug.c
drivers/mtd/ubi/debug.h