]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: dout free space added starts at aligned_old_size
authorJoshua Blanch <joshua.blanch@clyso.com>
Mon, 16 Mar 2026 20:31:04 +0000 (20:31 +0000)
committerJoshua Blanch <joshua.blanch@clyso.com>
Thu, 23 Apr 2026 15:05:55 +0000 (15:05 +0000)
Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
src/os/bluestore/BlueFS.cc

index 3b19b21c618a7a1484f92c02403d6d36bf8f3462..8bd8fff46cd91e217f3ff61d81ec636002021e14 100644 (file)
@@ -950,8 +950,8 @@ void BlueFS::expand_device(unsigned devid, uint64_t new_size, uint64_t old_size)
   ceph_assert(total > total - free);
 
   dout(10) << __func__ << " dev " << devid
-           << " added free space: 0x" << std::hex << old_size
-           << "~0x" << (aligned_size - old_size) << std::dec << dendl;
+           << " added free space: 0x" << std::hex << aligned_old_size
+           << "~0x" << (aligned_size - aligned_old_size) << std::dec << dendl;
 }
 
 int BlueFS::_read_and_check(uint8_t ndev, uint64_t off, uint64_t len,