From eba66d79cb475caced96f9f99af342d0e07e7ae1 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Fri, 21 Nov 2025 16:49:00 +0800 Subject: [PATCH] crimson/os/seastore/cache: drop unused last_commit Signed-off-by: Xuehan Xu --- src/crimson/os/seastore/cache.cc | 3 --- src/crimson/os/seastore/cache.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 240764f3b4d..cfa239e645f 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -1581,7 +1581,6 @@ 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; @@ -1942,8 +1941,6 @@ void Cache::complete_commit( } } - last_commit = start_seq; - apply_backref_byseq(t.move_backref_entries(), start_seq); commit_backref_entries(std::move(backref_entries), start_seq); } diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index 9561bd1516b..4ba8b0810cc 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -1639,8 +1639,6 @@ 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 segment_providers_by_device_id; -- 2.47.3