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:
Yingxin 2024-03-19 09:29:26 +08:00 committed by GitHub
commit e76d3a3f39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1295,8 +1295,11 @@ private:
CachedExtent &ext,
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;
}
if (ext.is_stable_clean() && !ext.is_placeholder()) {
lru.move_to_top(ext);
}