]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "crimson/os/seastore/async_cleaner: renew backref cursors when they are"
authorMatan Breizman <mbreizma@redhat.com>
Mon, 9 Feb 2026 08:50:07 +0000 (08:50 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 9 Feb 2026 08:50:07 +0000 (08:50 +0000)
This reverts commit a9c17a2c0912064f51492c2b012cd5608c6a57c1.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/seastore/async_cleaner.cc
src/crimson/os/seastore/backref/backref_tree_node.h
src/crimson/os/seastore/backref_mapping.h

index 927e27f41a942b327a09257f13d9814d06fe8a9a..b3c460173c9448ffde6daf424adc7fb6c77cd519 100644 (file)
@@ -1154,7 +1154,7 @@ using do_reclaim_space_ertr = base_ertr;
 using do_reclaim_space_ret = do_reclaim_space_ertr::future<>;
 do_reclaim_space_ret do_reclaim_space(
     const std::vector<CachedExtentRef> &backref_extents,
-    backref_mapping_list_t &pin_list,
+    const backref_mapping_list_t &pin_list,
     std::size_t &reclaimed,
     std::size_t &runs,
     ExtentCallbackInterface &extent_callback,
@@ -1215,7 +1215,6 @@ do_reclaim_space_ret do_reclaim_space(
           backref_manager.get_cached_backref_entries_in_range(start_pos, end_pos);
         backref_entry_query_set_t backref_entries;
         for (auto &pin : pin_list) {
-         pin.renew_cursor(t);
           backref_entries.emplace(
             pin.get_key(),
             pin.get_val(),
index f8e0612900680a3c71f459d05ae4e8b22a4269cb..2e331146425ddfcb47795ac8dde3676bea1c02bf 100644 (file)
@@ -187,17 +187,6 @@ struct BackrefCursor :
     assert(!is_end());
     return iter.get_val().type;
   }
-
-  BackrefCursor* renew_cursor(Transaction &t) {
-    auto c = op_context_t{ctx.cache, t};
-    t.maybe_add_to_read_set(parent);
-    return new BackrefCursor(
-      c,
-      std::move(parent),
-      modifications,
-      std::move(iter));
-  }
-
 };
 using BackrefCursorRef = boost::intrusive_ptr<BackrefCursor>;
 
index 1d4e78e9b7e7232fa3dec7e19df696c35914bbf7..4702ba6095fef39b1794f71e550fb8c8bd3d9af6 100644 (file)
@@ -54,10 +54,6 @@ public:
     assert(cursor);
     return cursor->get_type();
   }
-
-  void renew_cursor(Transaction &t) {
-    cursor.reset(cursor->renew_cursor(t));
-  }
 };
 
 using backref_mapping_list_t = std::list<BackrefMapping>;