From: myoungwon oh Date: Thu, 12 May 2022 02:59:13 +0000 (+0900) Subject: seastore/cbjournal: fix comment to explain the condition in detail X-Git-Tag: v18.0.0~857^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1518a0679030389187669ea8c7b6f55bb467c81c;p=ceph.git seastore/cbjournal: fix comment to explain the condition in detail Signed-off-by: Myoungwon Oh --- diff --git a/src/crimson/os/seastore/journal/circular_bounded_journal.cc b/src/crimson/os/seastore/journal/circular_bounded_journal.cc index 3f8f80d24e8..fb6c3c6f4cc 100644 --- a/src/crimson/os/seastore/journal/circular_bounded_journal.cc +++ b/src/crimson/os/seastore/journal/circular_bounded_journal.cc @@ -212,7 +212,8 @@ CircularBoundedJournal::submit_record_ret CircularBoundedJournal::submit_record( if (get_written_to() + ceph::encoded_sizeof_bounded() > 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