]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore/cbjournal: rename csum to header_checksum and remove csum_type
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 6 May 2022 06:02:12 +0000 (15:02 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 May 2022 00:48:26 +0000 (09:48 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/journal/circular_bounded_journal.cc
src/crimson/os/seastore/journal/circular_bounded_journal.h

index 1d3a852d6b0e3a2f085559c5ce86e5510c1ed1ee..d097ed946929ddb4fb4b602285fc6b071de085f6 100644 (file)
@@ -25,8 +25,7 @@ std::ostream &operator<<(std::ostream &out,
             << ", applied_to="<< header.applied_to
             << ", written_to=" << header.written_to
             << ", flsg=" << header.flag
-            << ", csum_type=" << header.csum_type
-            << ", csum=" << header.csum
+            << ", header_checksum=" << header.header_checksum
             << ", start=" << header.start
             << ", end=" << header.end
              << ")";
index c48d5a2f2a86636f47dc8f469a97275a244405da..0cc349152205f22d005e99dfa2f98c28a3b5be82 100644 (file)
@@ -220,8 +220,7 @@ public:
     rbm_abs_addr applied_to = 0;
 
     uint64_t flag = 0;       // represent features (reserved)
-    uint8_t csum_type = 0;   // type of checksum algoritghm used in cbj_header_t
-    uint64_t csum = 0;       // checksum of entire cbj_header_t
+    checksum_t header_checksum = 0;       // checksum of entire cbj_header_t
 
     rbm_abs_addr start = 0; // start address of CircularBoundedJournal
     rbm_abs_addr end = 0;   // start address of CircularBoundedJournal
@@ -240,8 +239,7 @@ public:
       denc(v.applied_to, p);
 
       denc(v.flag, p);
-      denc(v.csum_type, p);
-      denc(v.csum, p);
+      denc(v.header_checksum, p);
       denc(v.start, p);
       denc(v.end, p);
       denc(v.device_id, p);