]> 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>
Mon, 16 Feb 2026 23:40:56 +0000 (15:40 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.cc

index f85165eaaadb59355284f79e281cb3bf4af8fbf4..44ef0d9ce7b745a925000d636a8cddf99e0c125d 100644 (file)
@@ -650,7 +650,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{},
@@ -658,7 +658,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
@@ -694,7 +694,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{},
@@ -702,7 +702,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