Skip to content

Commit 9c7cc0b

Browse files
committed
crimson/os/seastore: fix incorrect total space reporting when using multiple shards in RBM
This commit fixes incorrect total space reporting when using multiple shards in RBM. Only reporting is incorrect, while underlying RBM mechanism works correctly. Signed-off-by: Myoungwon Oh <[email protected]>
1 parent d2175d2 commit 9c7cc0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crimson/os/seastore/async_cleaner.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,8 @@ class RBMCleaner : public AsyncCleaner {
17621762
auto rbs = rb_group->get_rb_managers();
17631763
size_t total = 0;
17641764
for (auto p : rbs) {
1765-
total += p->get_device()->get_available_size();
1765+
total += p->get_size();
1766+
total += p->get_journal_size();
17661767
}
17671768
return total;
17681769
}

0 commit comments

Comments
 (0)