jffs2 eof detect: mark erased blocks after erasing them
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jun 2006 16:28:12 +0000 (16:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jun 2006 16:28:12 +0000 (16:28 +0000)
SVN-Revision: 4054

openwrt/target/linux/generic-2.4/patches/227-jffs2_eofdetect.patch

index 6288bd5753e0c1a1b8645735a82c4c17468983ea..ad0ac0c23ee4c2cb24ea7c19654e58ab7fe3de90 100644 (file)
@@ -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 */