]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "crimson/os/seastore/cache: drop unused last_commit"
authorMatan Breizman <mbreizma@redhat.com>
Mon, 9 Feb 2026 08:49:45 +0000 (08:49 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 9 Feb 2026 08:49:45 +0000 (08:49 +0000)
This reverts commit 33e63bc85fafc057974142071318a32121a62a59.

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

index a2bf6bea14c89d08fa26493a2e6ba36c202b15e3..9cd06c6dd0fb39f97fa51b341fa1ceceea6ff5c3 100644 (file)
@@ -1585,6 +1585,7 @@ record_t Cache::prepare_record(
     // set the version to zero because the extent state is now clean
     // in order to handle this transparently
     i->version = 0;
+    i->dirty_from = JOURNAL_SEQ_MIN;
     // no set_io_wait(), skip complete_commit()
     assert(!i->is_pending_io());
     i->state = CachedExtent::extent_state_t::CLEAN;
@@ -1954,6 +1955,8 @@ void Cache::complete_commit(
     }
   }
 
+  last_commit = start_seq;
+
   if (!can_drop_backref()) {
     apply_backref_byseq(t.move_backref_entries(), start_seq);
     commit_backref_entries(std::move(backref_entries), start_seq);
index 2c0401dde7b074b29d4f36012b1df79353a80f73..4db6d7006025cace1fe0535b9de2b63beecaea90 100644 (file)
@@ -1643,6 +1643,8 @@ private:
   RootBlockRef root;               ///< ref to current root
   ExtentIndex extents_index;             ///< set of live extents
 
+  journal_seq_t last_commit = JOURNAL_SEQ_MIN;
+
   // FIXME: This is specific to the segmented implementation
   std::vector<SegmentProvider*> segment_providers_by_device_id;