// 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");
}
}