summaryrefslogtreecommitdiffstats
path: root/utils/lru.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lru.c')
-rw-r--r--utils/lru.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/lru.c b/utils/lru.c
index f1e884b..7fd036e 100644
--- a/utils/lru.c
+++ b/utils/lru.c
@@ -10,11 +10,10 @@
# include "lru.h"
-# define LRU_CAPACITY 5
-
static struct list_head Cache;
static int lruCount;
+size_t glfsLruCount = 5; /* default lru cache size */
typedef struct Entry {
char volume[256];
@@ -50,7 +49,7 @@ appendNewEntry(const char *volname, glfs_t *fs)
Entry *tmp;
- if (lruCount == LRU_CAPACITY) {
+ if (lruCount == glfsLruCount) {
releaseColdEntry();
}