Otherwise we could have a strange situation in which trimming
is working fine, but the health check thinks there's a problem.
Fixes: http://tracker.ceph.com/issues/19395
Signed-off-by: John Spray <john.spray@redhat.com>
}
// Report if we have significantly exceeded our cache size limit
- if (CInode::count() >
+ if (mds->mdcache->get_cache_size() >
g_conf->mds_cache_size * g_conf->mds_health_cache_threshold) {
std::ostringstream oss;
- oss << "Too many inodes in cache (" << CInode::count()
+ oss << "Too many inodes in cache (" << mds->mdcache->get_cache_size()
<< "/" << g_conf->mds_cache_size << "), "
<< mds->mdcache->num_inodes_with_caps << " inodes in use by clients, "
<< mds->mdcache->get_num_strays() << " stray files";