From: Samuel Just Date: Fri, 28 Aug 2020 09:55:15 +0000 (-0700) Subject: crimson/os/seastore/journal: no need for p2roundup, to_write must already be aligned X-Git-Tag: v16.1.0~807^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db86ad60118503250248bb4e0b51e48ec08e4c0e;p=ceph.git crimson/os/seastore/journal: no need for p2roundup, to_write must already be aligned Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/journal.cc b/src/crimson/os/seastore/journal.cc index dd8705b8b9f..d044c0abf60 100644 --- a/src/crimson/os/seastore/journal.cc +++ b/src/crimson/os/seastore/journal.cc @@ -96,7 +96,8 @@ Journal::write_record_ret Journal::write_record( ceph::bufferlist to_write = encode_record( rsize, std::move(record)); auto target = written_to; - written_to += p2roundup(to_write.length(), (unsigned)block_size); + assert((to_write.length() % block_size) == 0); + written_to += to_write.length(); logger().debug( "write_record, mdlength {}, dlength {}, target {}", rsize.mdlength,