jffs2: Dynamically choose inocache hash size
authorDaniel Drake <dsd@laptop.org>
Thu, 7 Oct 2010 18:14:02 +0000 (19:14 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 23:57:19 +0000 (00:57 +0100)
When JFFS2 is used for large volumes, the mount times are quite long.
Increasing the hash size provides a significant speed boost on the OLPC
XO-1 laptop.

Add logic that dynamically selects a hash size based on the size of
the medium. A 64mb medium will result in a hash size of 128, and a 512mb
medium will result in a hash size of 1024.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/build.c
fs/jffs2/fs.c
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/nodelist.c
fs/jffs2/nodelist.h

Simple merge
diff --cc fs/jffs2/fs.c
Simple merge
Simple merge
Simple merge
Simple merge