]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/.../transaction_manager: convert rewrite_logical_extent to use get_cursor
authorSamuel Just <sjust@redhat.com>
Mon, 13 Oct 2025 21:41:15 +0000 (14:41 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 28 Jan 2026 03:02:39 +0000 (19:02 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.cc

index a87d8cc74f6019c3fe3cd7e0fd134a0f741a2863..aa238ba68ce6a804cad41989c9a2a23fc270aaa9 100644 (file)
@@ -648,7 +648,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{},
@@ -656,7 +656,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
@@ -692,7 +692,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{},
@@ -700,7 +700,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