[PATCH] [JFFS2] Speed up mounts by inreasing INO_CACHE_HASHSIZE to 1024
Daniel Drake
dsd at laptop.org
Fri Sep 24 15:22:42 EDT 2010
From: David Woodhouse <dwmw2 at infradead.org>
This significantly speeds up jffs2 mounting on OLPC laptops.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Daniel Drake <dsd at laptop.org>
---
OLPC have carried this kernel patch for years.
Is it upstream-suitable?
fs/jffs2/nodelist.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/jffs2/nodelist.h b/fs/jffs2/nodelist.h
index 523a916..976e237 100644
--- a/fs/jffs2/nodelist.h
+++ b/fs/jffs2/nodelist.h
@@ -199,7 +199,7 @@ struct jffs2_inode_cache {
#define RAWNODE_CLASS_XATTR_DATUM 1
#define RAWNODE_CLASS_XATTR_REF 2
-#define INOCACHE_HASHSIZE 128
+#define INOCACHE_HASHSIZE 1024
#define write_ofs(c) ((c)->nextblock->offset + (c)->sector_size - (c)->nextblock->free_size)
--
1.7.2.2
More information about the linux-mtd
mailing list