summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-08 12:53:06 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-10 13:45:05 +0100
commit51c2bd7408b0a4ee73ecd1928d4c17d4fafb1ec2 (patch)
tree557c2c469bb7eaa4e80ed547f6627c4d22949db2 /ext2fs
parent6a2dec41b11492b3d6295e9546934f3cf10e6e74 (diff)
ext2fs: tune the size of the inode cache
The node cache uses a fixed number of buckets giving it a linear access complexity, although with a small constant factor. Paper over this issue by increasing the number of buckets. * ext2fs/inode.c (INOHSZ): Increase from 512 to 8192 entries.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index ed782657..27530fbe 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -39,7 +39,7 @@
#define UF_IMMUTABLE 0
#endif
-#define INOHSZ 512
+#define INOHSZ 8192
#if ((INOHSZ&(INOHSZ-1)) == 0)
#define INOHASH(ino) ((ino)&(INOHSZ-1))
#else