mds: properly put unexpired dentry back to lru

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-12-27 11:12:11 +08:00
parent c94a2c429e
commit 276d12547f

View File

@ -6386,6 +6386,7 @@ bool MDCache::trim(int max, int count)
if (!dn->get_linkage()->is_null()) { if (!dn->get_linkage()->is_null()) {
trimming_nulls = false; trimming_nulls = false;
if (lru.lru_get_size() + unexpirable <= (unsigned)max) { if (lru.lru_get_size() + unexpirable <= (unsigned)max) {
unexpirables.push_back(dn);
break; break;
} }
} }