]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/cache: drop unused last_commit
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 21 Nov 2025 08:49:00 +0000 (16:49 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Fri, 23 Jan 2026 03:07:49 +0000 (11:07 +0800)
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cache.h

index 240764f3b4d33c22932f38a97b05642792fa2486..cfa239e645fcdfbc2d635a9fe39f68da667429e9 100644 (file)
@@ -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);
 }
index 9561bd1516b884bc3448139a72bac12e049e6673..4ba8b0810cc34390d50366dce9a7f7a533685b1a 100644 (file)
@@ -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<SegmentProvider*> segment_providers_by_device_id;