[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Killing JFFS under 2.2
scote1@xxxxxxx.com said:
> If it has already found some data in the scan (the head), each free
> space should be set as dirty. Then the GC should be able to repair
> the damages.
do you mean....
Index: intrep.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs/intrep.c,v
retrieving revision 1.23
diff -u -w -r1.23 intrep.c
--- intrep.c 2000/07/26 15:02:10 1.23
+++ intrep.c 2000/07/26 15:16:59
@@ -626,6 +626,10 @@
pos += 4);
D1(printk("jffs_scan_flash(): 0xff ended at "
"pos 0x%lx.\n", (long)pos));
+ if (fmc->head) {
+ jffs_fmalloced(fmc, (__u32) start,
+ (__u32) (pos - start), 0);
+ }
continue;
case JFFS_DIRTY_BITMASK:
?
--
dwmw2