From: Zhang Song Date: Tue, 19 Aug 2025 11:41:11 +0000 (+0800) Subject: crimson/os/seastore/CBJournal: correct needs_roll condition X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db264ddae86882203901578a4f632c609680981e;p=ceph.git crimson/os/seastore/CBJournal: correct needs_roll condition Fixes: https://tracker.ceph.com/issues/72611 Signed-off-by: Zhang Song --- diff --git a/src/crimson/os/seastore/journal/circular_journal_space.cc b/src/crimson/os/seastore/journal/circular_journal_space.cc index 29095abf9c34..2afd4daadf19 100644 --- a/src/crimson/os/seastore/journal/circular_journal_space.cc +++ b/src/crimson/os/seastore/journal/circular_journal_space.cc @@ -27,7 +27,7 @@ std::ostream &operator<<(std::ostream &out, CircularJournalSpace::CircularJournalSpace(RBMDevice * device) : device(device) {} bool CircularJournalSpace::needs_roll(std::size_t length) const { - if (length + get_rbm_addr(get_written_to()) > get_journal_end()) { + if (length + get_rbm_addr(get_written_to()) >= get_journal_end()) { return true; } return false;