mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
Merge pull request #56250 from myoungwon/wip-laod-metadata-during-gc
crimson/os/seastore: cache metadata during trimming to prevent from disk read Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com> Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
This commit is contained in:
commit
e76d3a3f39
@ -1295,8 +1295,11 @@ private:
|
|||||||
CachedExtent &ext,
|
CachedExtent &ext,
|
||||||
const Transaction::src_t* p_src=nullptr)
|
const Transaction::src_t* p_src=nullptr)
|
||||||
{
|
{
|
||||||
if (p_src && is_background_transaction(*p_src))
|
if (p_src &&
|
||||||
|
is_background_transaction(*p_src) &&
|
||||||
|
is_logical_type(ext.get_type())) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
if (ext.is_stable_clean() && !ext.is_placeholder()) {
|
if (ext.is_stable_clean() && !ext.is_placeholder()) {
|
||||||
lru.move_to_top(ext);
|
lru.move_to_top(ext);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user