jffs almost working

Alexander Larsson alex at cendio.se
Fri May 19 12:14:52 EDT 2000


Jffs and MTD should be mostly working now. I need to upgrade my kernel
from 2.3.99-pre3 to one where try_inc_mod_count() is exported.
Undoubtedly some vfs changes since pre3 requires some minor
modifications, but it should basically work.

If you want to try it out without doing any changes, run 2.3.99-pre3, and
the lates MTD cvs tree with the following small (temporary) patch:
Index: include/linux/mtd/mtd.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/mtd.h,v
retrieving revision 1.11
diff -u -r1.11 mtd.h
--- include/linux/mtd/mtd.h     2000/05/03 18:50:01     1.11
+++ include/linux/mtd/mtd.h     2000/05/19 16:12:14
@@ -21,6 +21,11 @@
 }
 #endif
 
+static inline int try_inc_mod_count(struct module *mod)
+{
+     __MOD_INC_USE_COUNT(mod);
+     return 0;
+}
 
 #endif
 
Now I need to do more stress-testing and check all the corner cases. I
don't know if stuff is SMP safe, have to do more reading and thinking.

/ Alex







To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list