mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
mds: properly put unexpired dentry back to lru
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
parent
c94a2c429e
commit
276d12547f
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user