diff options
author | Daniel Drake <dsd@laptop.org> | 2010-10-07 20:14:02 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-25 01:57:19 +0200 |
commit | 65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62 (patch) | |
tree | 0790ae9e682c5de24b0ffd7111a0bfab4f03aab3 /fs/jffs2/jffs2_fs_sb.h | |
parent | mtd: remove junk tabs in nand.h (diff) | |
download | linux-65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62.tar.xz linux-65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62.zip |
jffs2: Dynamically choose inocache hash size
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>
Diffstat (limited to 'fs/jffs2/jffs2_fs_sb.h')
-rw-r--r-- | fs/jffs2/jffs2_fs_sb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jffs2/jffs2_fs_sb.h b/fs/jffs2/jffs2_fs_sb.h index 6784bc89add1..f864005de64c 100644 --- a/fs/jffs2/jffs2_fs_sb.h +++ b/fs/jffs2/jffs2_fs_sb.h @@ -100,6 +100,7 @@ struct jffs2_sb_info { wait_queue_head_t erase_wait; /* For waiting for erases to complete */ wait_queue_head_t inocache_wq; + int inocache_hashsize; struct jffs2_inode_cache **inocache_list; spinlock_t inocache_lock; |