From: Adam Kupczyk Date: Tue, 15 Apr 2025 08:37:25 +0000 (+0000) Subject: os/bluestore: Fix dirty_range in BlueStore::_do_remove X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d6c61326a125f8bd278ec1c656d673e53edf47cd;p=ceph-ci.git os/bluestore: Fix dirty_range in BlueStore::_do_remove dirty_range used to have length = 1 byte. This is good if whole extent is inside shard. But this has proven not to be the case. dirty_range(offset, length) is slower only when it crosses shard. Partially fixes: https://tracker.ceph.com/issues/70390 Signed-off-by: Adam Kupczyk (cherry picked from commit 4f566eaf6c4646e513ea6747c7df17383d8716e2) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 1e917708e67..24a4e3848fc 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -18050,7 +18050,7 @@ int BlueStore::_do_remove( bluestore_blob_t& blob = e.blob->dirty_blob(); blob.clear_flag(bluestore_blob_t::FLAG_SHARED); e.blob->get_dirty_shared_blob() = nullptr; - h->extent_map.dirty_range(e.logical_offset, 1); + h->extent_map.dirty_range(e.logical_offset, e.length); } } txc->write_onode(h);