From caa73ba33c149a2140f7a348cea3cbc4debb5639 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 12 Feb 2016 15:50:24 -0500 Subject: [PATCH] os/filestore/FileJournal: simplify alignment asserts Signed-off-by: Sage Weil --- src/os/filestore/FileJournal.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc index b0ae170172e..ce6cd6223b6 100644 --- a/src/os/filestore/FileJournal.cc +++ b/src/os/filestore/FileJournal.cc @@ -1042,12 +1042,9 @@ void FileJournal::align_bl(off64_t pos, bufferlist& bl) // make sure list segments are page aligned if (directio && (!bl.is_aligned(block_size) || !bl.is_n_align_sized(CEPH_DIRECTIO_ALIGNMENT))) { - assert(0 == "bl should be align"); - if ((bl.length() & (CEPH_DIRECTIO_ALIGNMENT - 1)) != 0 || - (pos & (CEPH_DIRECTIO_ALIGNMENT - 1)) != 0) - dout(0) << "rebuild_page_aligned failed, " << bl << dendl; assert((bl.length() & (CEPH_DIRECTIO_ALIGNMENT - 1)) == 0); assert((pos & (CEPH_DIRECTIO_ALIGNMENT - 1)) == 0); + assert(0 == "bl was not aligned"); } } -- 2.47.3