summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/inode.c')
-rw-r--r--libglusterfs/src/inode.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index 04e4560ed8f..57a3c35df2a 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -1047,14 +1047,18 @@ inode_table_new (size_t lru_limit, xlator_t *xl)
new->hashsize = 14057; /* TODO: Random Number?? */
- new->inode_pool = mem_pool_new (inode_t, 204654);
+ /* In case FUSE is initing the inode table. */
+ if (lru_limit == 0)
+ lru_limit = DEFAULT_INODE_MEMPOOL_ENTRIES;
+
+ new->inode_pool = mem_pool_new (inode_t, lru_limit);
if (!new->inode_pool) {
GF_FREE (new);
return NULL;
}
- new->dentry_pool = mem_pool_new (dentry_t, 204654);
+ new->dentry_pool = mem_pool_new (dentry_t, lru_limit);
if (!new->dentry_pool) {
GF_FREE (new);