From: Joshua Blanch Date: Tue, 3 Mar 2026 18:27:22 +0000 (+0000) Subject: os/bluestore: skip bitmapfm exapnd if old and new size are the same X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2186c8bec2acaf716a271bc714ec5b377a2f8f1e;p=ceph.git os/bluestore: skip bitmapfm exapnd if old and new size are the same Signed-off-by: Joshua Blanch --- diff --git a/src/os/bluestore/BitmapFreelistManager.cc b/src/os/bluestore/BitmapFreelistManager.cc index ea6f95f45ec..9df22a97007 100644 --- a/src/os/bluestore/BitmapFreelistManager.cc +++ b/src/os/bluestore/BitmapFreelistManager.cc @@ -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);