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 | f73272206d9fb81595067b82523668356dc47f65 (patch) | |
tree | f92664b4b5eb08f27a5b0394308d17ad77b7bf2b /target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch | |
parent | 4cd3d1fab11e52b41de7963228f3877c8f0162f6 (diff) | |
download | master-187ad058-f73272206d9fb81595067b82523668356dc47f65.tar.gz master-187ad058-f73272206d9fb81595067b82523668356dc47f65.tar.bz2 master-187ad058-f73272206d9fb81595067b82523668356dc47f65.zip |
jffs2 eof detect: mark erased blocks after erasing them
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4054 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch')
-rw-r--r-- | target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch b/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch index 6288bd5753..ad0ac0c23e 100644 --- a/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch +++ b/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 */ |