diff options
Diffstat (limited to 'src/crimson/os')
-rw-r--r-- | src/crimson/os/seastore/random_block_manager/block_rb_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crimson/os/seastore/random_block_manager/block_rb_manager.cc b/src/crimson/os/seastore/random_block_manager/block_rb_manager.cc index 81a836a7c3e..9f6a566d15c 100644 --- a/src/crimson/os/seastore/random_block_manager/block_rb_manager.cc +++ b/src/crimson/os/seastore/random_block_manager/block_rb_manager.cc @@ -132,6 +132,7 @@ BlockRBManager::write_ertr::future<> BlockRBManager::write( bufferptr bptr) { ceph_assert(device); + ceph_assert(bptr.is_page_aligned()); rbm_abs_addr addr = convert_paddr_to_abs_addr(paddr); if (!check_valid_range(addr, bptr)) { return crimson::ct_error::erange::make(); @@ -146,6 +147,7 @@ BlockRBManager::read_ertr::future<> BlockRBManager::read( bufferptr &bptr) { ceph_assert(device); + ceph_assert(bptr.is_page_aligned()); rbm_abs_addr addr = convert_paddr_to_abs_addr(paddr); if (!check_valid_range(addr, bptr)) { return crimson::ct_error::erange::make(); |