Add a target size for the cache, and prune the cache when it gets larger.
[bluesky.git] / bluesky / file.c
index 0c92e69..94677f6 100644 (file)
@@ -287,9 +287,6 @@ void bluesky_file_drop_cached(BlueSkyInode *inode)
                 b->ref->data = NULL;
                 bluesky_cloudlog_stats_update(b->ref, 1);
             }
-            if (b->ref->location_flags & CLOUDLOG_CLOUD) {
-                b->ref->location_flags &= ~CLOUDLOG_JOURNAL;
-            }
             g_mutex_unlock(b->ref->lock);
         }
     }