[JFFS2] Add erase block summary support (mount time improvement)
authorFerenc Havasi <havasi@inf.u-szeged.hu>
Wed, 7 Sep 2005 08:35:26 +0000 (09:35 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Sun, 6 Nov 2005 20:29:48 +0000 (21:29 +0100)
commite631ddba588783edd521c5a89f7b2902772fb691
treee25f322ee498b344f058ce4a40060baa22a5f105
parent15017876751e4c2d786ba95920618359fe2b4f0a
[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>
20 files changed:
fs/Kconfig
fs/jffs2/Makefile
fs/jffs2/build.c
fs/jffs2/debug.h
fs/jffs2/dir.c
fs/jffs2/file.c
fs/jffs2/fs.c
fs/jffs2/gc.c
fs/jffs2/nodelist.h
fs/jffs2/nodemgmt.c
fs/jffs2/os-linux.h
fs/jffs2/scan.c
fs/jffs2/summary.c [new file with mode: 0644]
fs/jffs2/summary.h [new file with mode: 0644]
fs/jffs2/super.c
fs/jffs2/wbuf.c
fs/jffs2/write.c
fs/jffs2/writev.c
include/linux/jffs2.h
include/linux/jffs2_fs_sb.h