]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore/cbjournal: fix comment to explain the condition in detail
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 12 May 2022 02:59:13 +0000 (11:59 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 May 2022 00:49:54 +0000 (09:49 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/journal/circular_bounded_journal.cc

index 3f8f80d24e8fcb8fa8772521a5aca7629da88e52..fb6c3c6f4cc9f22863bfbc096f0ca2e9a1f62e6c 100644 (file)
@@ -212,7 +212,8 @@ CircularBoundedJournal::submit_record_ret CircularBoundedJournal::submit_record(
   if (get_written_to() +
       ceph::encoded_sizeof_bounded<record_group_header_t>() > get_journal_end()) {
     // not enough space between written_to and the end of journal,
-    // so that update used size to increase the amount of the remaing space
+    // so that set written_to to the beginning of cbjournal to append 
+    // the record at the start address of cbjournal
     // |        cbjournal      |
     //                   v            v
     //      written_to <-> the end of journal