Skip to content

Commit e76d3a3

Browse files
authored
Merge pull request ceph#56250 from myoungwon/wip-laod-metadata-during-gc
crimson/os/seastore: cache metadata during trimming to prevent from disk read Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Chunmei Liu <[email protected]>
2 parents 95c763e + 7f253ce commit e76d3a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/crimson/os/seastore/cache.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,8 +1295,11 @@ class Cache {
12951295
CachedExtent &ext,
12961296
const Transaction::src_t* p_src=nullptr)
12971297
{
1298-
if (p_src && is_background_transaction(*p_src))
1298+
if (p_src &&
1299+
is_background_transaction(*p_src) &&
1300+
is_logical_type(ext.get_type())) {
12991301
return;
1302+
}
13001303
if (ext.is_stable_clean() && !ext.is_placeholder()) {
13011304
lru.move_to_top(ext);
13021305
}

0 commit comments

Comments
 (0)