From: Samuel Just Date: Mon, 13 Oct 2025 21:41:15 +0000 (-0700) Subject: crimson/.../transaction_manager: convert rewrite_logical_extent to use get_cursor X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85d85f8d8aafeb5a37ee0a1ff85d950086fe8eb1;p=ceph-ci.git crimson/.../transaction_manager: convert rewrite_logical_extent to use get_cursor Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/transaction_manager.cc b/src/crimson/os/seastore/transaction_manager.cc index da27aec74a2..c4a77bcaf55 100644 --- a/src/crimson/os/seastore/transaction_manager.cc +++ b/src/crimson/os/seastore/transaction_manager.cc @@ -633,7 +633,7 @@ TransactionManager::rewrite_logical_extent( * extents since we're going to do it again once we either do the ool write * or allocate a relative inline addr. TODO: refactor AsyncCleaner to * avoid this complication. */ - auto mapping = co_await lba_manager->get_mapping( + auto cursor = co_await lba_manager->get_cursor( t, *extent ).handle_error_interruptible( rewrite_extent_iertr::pass_further{}, @@ -641,7 +641,7 @@ TransactionManager::rewrite_logical_extent( ); co_await lba_manager->update_mapping( t, - std::move(mapping), + std::move(cursor), extent->get_length(), extent->get_paddr(), *nextent @@ -677,7 +677,7 @@ TransactionManager::rewrite_logical_extent( * avoid this complication. */ if (first_extent) { assert(off == 0); - auto mapping = co_await lba_manager->get_mapping( + auto cursor = co_await lba_manager->get_cursor( t, *extent ).handle_error_interruptible( rewrite_extent_iertr::pass_further{}, @@ -685,7 +685,7 @@ TransactionManager::rewrite_logical_extent( ); refcount = co_await lba_manager->update_mapping( t, - std::move(mapping), + std::move(cursor), extent->get_length(), extent->get_paddr(), *nextent