diff options
Diffstat (limited to 'xlators/performance/quick-read/src/quick-read.c')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index fd15b9d404b..33ab66183bd 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -259,7 +259,7 @@ __qr_cache_prune (xlator_t *this) table = &priv->table; conf = &priv->conf; - size_to_prune = conf->cache_size - table->cache_used; + size_to_prune = table->cache_used - conf->cache_size; for (index=0; index < conf->max_pri; index++) { list_for_each_entry_safe (curr, next, &table->lru[index], lru) { @@ -280,7 +280,7 @@ done: inline char __qr_need_cache_prune (qr_conf_t *conf, qr_inode_table_t *table) { - return (table->cache_used >= conf->cache_size); + return (table->cache_used > conf->cache_size); } |