]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: rename ool_write_stats_t::overhead_bytes
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 11 Oct 2021 07:57:29 +0000 (15:57 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 11 Oct 2021 08:14:01 +0000 (16:14 +0800)
To header_bytes to be more explicit.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/extent_placement_manager.cc
src/crimson/os/seastore/transaction.h

index 4f810003b90e51682d78ab8fd5433bb670a8db9e..f7f32b8b04e403d86147733b00a7f27d1f82258e 100644 (file)
@@ -676,7 +676,7 @@ void Cache::mark_transaction_conflicted(
     efforts.fresh_ool_written.extents += ool_stats.extents.num;
     efforts.fresh_ool_written.bytes += ool_stats.extents.bytes;
     efforts.num_ool_records += ool_stats.num_records;
-    efforts.ool_record_overhead_bytes += ool_stats.overhead_bytes;
+    efforts.ool_record_overhead_bytes += ool_stats.header_bytes;
 
     if (t.get_src() == Transaction::src_t::CLEANER) {
       // CLEANER transaction won't contain any onode tree operations
@@ -940,7 +940,7 @@ record_t Cache::prepare_record(Transaction &t)
   auto& ool_stats = t.get_ool_write_stats();
   ceph_assert(ool_stats.extents.num == t.ool_block_list.size());
   efforts.num_ool_records += ool_stats.num_records;
-  efforts.ool_record_overhead_bytes += ool_stats.overhead_bytes;
+  efforts.ool_record_overhead_bytes += ool_stats.header_bytes;
   auto record_size = get_encoded_record_length(
       record, segment_manager.get_block_size());
   auto inline_overhead =
index 43e6235ddabe974cbc22c09a98e664735bb0d141..32ff1e94360b02b59e2d6bcfe98b86fb68926c98 100644 (file)
@@ -90,7 +90,7 @@ SegmentedAllocator::Writer::_write(
   auto extent_bytes = record.get_raw_data_size();
   stats.extents.bytes += extent_bytes;
   assert(bl.length() > extent_bytes);
-  stats.overhead_bytes += (bl.length() - extent_bytes);
+  stats.header_bytes += (bl.length() - extent_bytes);
   stats.num_records += 1;
 
   return trans_intr::make_interruptible(
index e0a1a9f4b3cd34ee000bcfe237f8ff5b4a02b818..f1d2e1a52f650a95dde41eae0a6d93f2abcc8af8 100644 (file)
@@ -302,7 +302,7 @@ public:
 
   struct ool_write_stats_t {
     io_stat_t extents;
-    uint64_t overhead_bytes = 0;
+    uint64_t header_bytes = 0;
     uint64_t num_records = 0;
   };
   ool_write_stats_t& get_ool_write_stats() {