jffs2 eof detect: mark erased blocks after erasing them
SVN-Revision: 4054
This commit is contained in:
parent
a9aeddb065
commit
98bdf458d5
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,7 @@ diff -ur linux.old/fs/jffs2/scan.c linux.dev/fs/jffs2/scan.c
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@@ -145,15 +154,22 @@
|
@@ -145,15 +154,23 @@
|
||||||
c->nr_erasing_blocks++;
|
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)) {
|
+ if (c->flags & (1 << 7)) {
|
||||||
+ printk("jffs2_scan_medium(): erasing all blocks after the end marker...\n");
|
+ printk("jffs2_scan_medium(): erasing all blocks after the end marker...\n");
|
||||||
+ jffs2_erase_pending_blocks(c);
|
+ jffs2_erase_pending_blocks(c);
|
||||||
|
+ jffs2_mark_erased_blocks(c);
|
||||||
+ printk("jffs2_scan_medium(): done.\n");
|
+ printk("jffs2_scan_medium(): done.\n");
|
||||||
+ } else {
|
+ } else {
|
||||||
+ /* Rotate the lists by some number to ensure wear levelling */
|
+ /* Rotate the lists by some number to ensure wear levelling */
|
||||||
|
|
Loading…
Reference in a new issue