Skip to contentSkip to conversation

Speed up mounts by inreasing INO_CACHE_HASHSIZE to 1024

PATCH New Daniel Drake 1 participant 1 message Sep 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Speed up mounts by inreasing INO_CACHE_HASHSIZE to 1024

From: David Woodhouse <[email protected]>

This significantly speeds up jffs2 mounting on OLPC laptops.

---

OLPC have carried this kernel patch for years.
Is it upstream-suitable?

 fs/jffs2/nodelist.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/jffs2/nodelist.h +1 -1
index 523a916..976e237 100644
@@ -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)
 
Signature · 1 line
1.7.2.2