]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: fix incorrect total space reporting when using multiple shards... 64703/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Sun, 27 Jul 2025 03:33:21 +0000 (03:33 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sun, 27 Jul 2025 03:44:26 +0000 (03:44 +0000)
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 <ohmyoungwon@gmail.com>
src/crimson/os/seastore/async_cleaner.h

index 1cef771aeb8815f968cfe8bc866cec0680ff5aa2..bcaf4a403d9eec3bb6fa77a46dba69ea06dc1834 100644 (file)
@@ -1762,7 +1762,8 @@ public:
     auto rbs = rb_group->get_rb_managers();
     size_t total = 0;
     for (auto p : rbs) {
-      total += p->get_device()->get_available_size();
+      total += p->get_size();
+      total += p->get_journal_size();
     }
     return total;
   }