[JFFS2] Add erase block summary support (mount time improvement)
The goal of summary is to speed up the mount time. Erase block summary (EBS) stores summary information at the end of every (closed) erase block. It is no longer necessary to scan all nodes separetly (and read all pages of them) just read this "small" summary, where every information is stored which is needed at mount time. This summary information is stored in a JFFS2_FEATURE_RWCOMPAT_DELETE. During the mount process if there is no summary info the orignal scan process will be executed. EBS works with NAND and NOR flashes, too. There is a user space tool called sumtool to generate this summary information for a JFFS2 image. Signed-off-by:Ferenc Havasi <havasi@inf.u-szeged.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- fs/Kconfig 13 additions, 0 deletionsfs/Kconfig
- fs/jffs2/Makefile 2 additions, 1 deletionfs/jffs2/Makefile
- fs/jffs2/build.c 8 additions, 4 deletionsfs/jffs2/build.c
- fs/jffs2/debug.h 9 additions, 1 deletionfs/jffs2/debug.h
- fs/jffs2/dir.c 13 additions, 7 deletionsfs/jffs2/dir.c
- fs/jffs2/file.c 3 additions, 2 deletionsfs/jffs2/file.c
- fs/jffs2/fs.c 3 additions, 2 deletionsfs/jffs2/fs.c
- fs/jffs2/gc.c 17 additions, 9 deletionsfs/jffs2/gc.c
- fs/jffs2/nodelist.h 10 additions, 3 deletionsfs/jffs2/nodelist.h
- fs/jffs2/nodemgmt.c 166 additions, 84 deletionsfs/jffs2/nodemgmt.c
- fs/jffs2/os-linux.h 16 additions, 3 deletionsfs/jffs2/os-linux.h
- fs/jffs2/scan.c 133 additions, 65 deletionsfs/jffs2/scan.c
- fs/jffs2/summary.c 729 additions, 0 deletionsfs/jffs2/summary.c
- fs/jffs2/summary.h 183 additions, 0 deletionsfs/jffs2/summary.h
- fs/jffs2/super.c 7 additions, 1 deletionfs/jffs2/super.c
- fs/jffs2/wbuf.c 9 additions, 3 deletionsfs/jffs2/wbuf.c
- fs/jffs2/write.c 19 additions, 10 deletionsfs/jffs2/write.c
- fs/jffs2/writev.c 32 additions, 2 deletionsfs/jffs2/writev.c
- include/linux/jffs2.h 20 additions, 1 deletioninclude/linux/jffs2.h
- include/linux/jffs2_fs_sb.h 3 additions, 1 deletioninclude/linux/jffs2_fs_sb.h
Loading
Please register or sign in to comment