mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 20:22:27 +02:00
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
This commit is contained in:
parent
9dfcb239f2
commit
d72543730b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user