]> 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>
Fri, 12 Dec 2025 22:43:22 +0000 (14:43 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/transaction_manager.cc

index 924012038247f0a99129a1379c3d7fa11ed59baf..4864413ebe875e305f2e3598263e6b5783cd4b17 100644 (file)
@@ -628,7 +628,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{},
@@ -636,7 +636,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
@@ -672,7 +672,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{},
@@ -680,7 +680,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