Skip to content

Commit ac07039

Browse files
authored
Merge pull request ceph#55889 from xxhdx1985126/wip-seastore-async-cleaner-comments
crimson/os/seastore/async_cleaner: add comments to clarify what kind of extents would be considered dead by the cleaner Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Chunmei Liu <[email protected]>
2 parents 1dcbaf7 + 61c7d6b commit ac07039

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/crimson/os/seastore/async_cleaner.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,15 @@ SegmentCleaner::do_reclaim_space(
10571057
std::size_t &reclaimed,
10581058
std::size_t &runs)
10591059
{
1060+
// Extents satisfying any of the following requirements
1061+
// are considered DEAD:
1062+
// 1. can't find the corresponding mapping in both the
1063+
// backref tree and the backref cache;
1064+
// 2. the extent is logical, but its lba mapping doesn't
1065+
// exist in the lba tree or the lba mapping in the lba
1066+
// tree doesn't match the extent's paddr
1067+
// 3. the extent is physical and doesn't exist in the
1068+
// lba tree, backref tree or backref cache;
10601069
return repeat_eagain([this, &backref_extents,
10611070
&pin_list, &reclaimed, &runs] {
10621071
reclaimed = 0;

0 commit comments

Comments
 (0)