]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: factor out LogicalCachedExtent::on_delta_write
authorSamuel Just <sjust@redhat.com>
Wed, 22 Jul 2020 19:23:36 +0000 (12:23 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 23 Sep 2020 22:13:51 +0000 (15:13 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cached_extent.h
src/crimson/os/seastore/onode_manager/simple-fltree/onode_block.cc
src/crimson/os/seastore/onode_manager/simple-fltree/onode_block.h

index c5fedf2adafb34dd0b920342769e57c83835da51..d03578caa44eb4598d8b7d1bf9f0d0d1273904da 100644 (file)
@@ -575,6 +575,12 @@ protected:
     return out;
   }
 
+  virtual void logical_on_delta_write() {}
+
+  void on_delta_write(paddr_t record_block_offset) final {
+    logical_on_delta_write();
+  }
+
 private:
   laddr_t laddr = L_ADDR_NULL;
   LBAPinRef pin;
index 1835ce895ddf2f8b25538d3e59e19689f6d2ca51..b05ea76a37474025a103e01c6e16d47990ddd403 100644 (file)
@@ -17,10 +17,7 @@ ceph::bufferlist OnodeBlock::get_delta()
   return bl;
 }
 
-void OnodeBlock::on_initial_write()
-{}
-
-void OnodeBlock::on_delta_write(paddr_t)
+void OnodeBlock::logical_on_delta_write()
 {
   // journal submitted to disk, now update the memory
   apply_pending_changes(true);
index 9f53bef81053214ea4c4b506e9cfd337a46c7113..0025d98479de63a1a9b92ac467c22bffa87796dc 100644 (file)
@@ -41,8 +41,7 @@ struct OnodeBlock final : LogicalCachedExtent {
   // before the transaction carrying these mutations is committed to
   // disk
   ceph::bufferlist get_delta() final;
-  void on_initial_write() final;
-  void on_delta_write(paddr_t record_block_offset) final;
+  void logical_on_delta_write() final;
   void apply_delta(const ceph::bufferlist &bl) final;
 
   void sync() {