diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-23 16:28:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-23 16:28:12 +0000 |
commit | 98bdf458d53d073c6be4958e8d28aaa6d89d8bed (patch) | |
tree | 1037e2cfe6769339ad239551f5e4bd595448ea9d /openwrt/target/linux/generic-2.4/patches | |
parent | a9aeddb065f388787a6f75533c383ed55956b02a (diff) | |
download | mtk-20170518-98bdf458d53d073c6be4958e8d28aaa6d89d8bed.zip mtk-20170518-98bdf458d53d073c6be4958e8d28aaa6d89d8bed.tar.gz mtk-20170518-98bdf458d53d073c6be4958e8d28aaa6d89d8bed.tar.bz2 |
jffs2 eof detect: mark erased blocks after erasing them
SVN-Revision: 4054
Diffstat (limited to 'openwrt/target/linux/generic-2.4/patches')
-rw-r--r-- | openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch b/openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch index 6288bd5..ad0ac0c 100644 --- a/openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch +++ b/openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch @@ -26,7 +26,7 @@ diff -ur linux.old/fs/jffs2/scan.c linux.dev/fs/jffs2/scan.c if (ret < 0) return ret; -@@ -145,15 +154,22 @@ +@@ -145,15 +154,23 @@ c->nr_erasing_blocks++; } } @@ -40,6 +40,7 @@ diff -ur linux.old/fs/jffs2/scan.c linux.dev/fs/jffs2/scan.c + if (c->flags & (1 << 7)) { + printk("jffs2_scan_medium(): erasing all blocks after the end marker...\n"); + jffs2_erase_pending_blocks(c); ++ jffs2_mark_erased_blocks(c); + printk("jffs2_scan_medium(): done.\n"); + } else { + /* Rotate the lists by some number to ensure wear levelling */ |