Revert "kernel: rewrite run_parsers_by_type() to use add_mtd_partitions()"

This reverts commit 15a0701cdd.

It was reported that this patch breaks on some cases the JFFS2 overlay
filesystem on targets still using kernel 4.14. This includes ar71xx,
where spurious erase of the ART was reported.

Revert this commit for now. Re-adding should probaby also be done for
every currently supported kernel version.

Ref: FS#2837 FS#2862 FS#2864
Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2020-03-07 22:45:55 +01:00
parent ab9fd528ae
commit fdfca33350
3 changed files with 24 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -1251,6 +1251,24 @@ int mtd_is_partition(const struct mtd_in
@@ -1260,6 +1260,24 @@ int mtd_is_partition(const struct mtd_in
}
EXPORT_SYMBOL_GPL(mtd_is_partition);