From f5a6ebbb7591ebc7ebf04816efacbe7c1d785069 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 5 Mar 2024 14:13:31 +0100 Subject: [PATCH] os/bluestore: change shared_blob references to getter Signed-off-by: Pere Diaz Bou --- src/os/bluestore/BlueStore.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index bfc40888c614c..ffd25b8891474 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -2440,7 +2440,7 @@ void BlueStore::Blob::dup(const Blob& from, bool copy_used_in_blob) } for (auto p : blob.get_extents()) { if (p.is_valid()) { - shared_blob->get_ref(p.offset, p.length); + get_dirty_shared_blob()->get_ref(p.offset, p.length); } } } @@ -2611,7 +2611,7 @@ void BlueStore::Blob::copy_extents_over_empty( if (prev != exto.end()) { if (prev->is_valid()) { if (prev->offset + prev->length == disk_offset) { - shared_blob->get_ref(disk_offset, disk_len); + get_dirty_shared_blob()->get_ref(disk_offset, disk_len); prev->length += disk_len; return; } @@ -2620,7 +2620,7 @@ void BlueStore::Blob::copy_extents_over_empty( it = exto.insert(it, bluestore_pextent_t(disk_offset, disk_len)); prev = it; ++it; - shared_blob->get_ref(disk_offset, disk_len); + get_dirty_shared_blob()->get_ref(disk_offset, disk_len); }; while (ito != exto.end() && sto >= ito->length) { @@ -3128,7 +3128,7 @@ void BlueStore::ExtentMap::make_range_shared_maybe_merge( uint32_t b_logical_length = b->merge_blob(store->cct, e.blob.get()); for (auto p : blob.get_extents()) { if (p.is_valid()) { - b->shared_blob->get_ref(p.offset, p.length); + b->get_dirty_shared_blob()->get_ref(p.offset, p.length); } } // reblob extents might erase e -- 2.39.5