]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: skip bitmapfm exapnd if old and new size are the same
authorJoshua Blanch <joshua.blanch@clyso.com>
Tue, 3 Mar 2026 18:27:22 +0000 (18:27 +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/BitmapFreelistManager.cc

index ea6f95f45ec5031af101cde50b84b9d88379decb..9df22a970073c867d2b382c2c6969759769b59db 100644 (file)
@@ -164,6 +164,9 @@ int BitmapFreelistManager::_expand(uint64_t old_size, KeyValueDB* db)
 }
 
 int BitmapFreelistManager::expand(uint64_t new_size, KeyValueDB* db){
+  if (new_size == size){
+    return 0;
+  }
   uint64_t old_size = size;
   size = new_size;
   return _expand(old_size ,db);