diff options
author | myoungwon oh <ohmyoungwon@gmail.com> | 2024-09-16 07:25:07 +0200 |
---|---|---|
committer | myoungwon oh <ohmyoungwon@gmail.com> | 2024-09-16 12:43:09 +0200 |
commit | 8fccda90d5bb35c646b9716e0b939a5979e7d545 (patch) | |
tree | 5c3ff6ca1116a76af7a8b653c404877041b75b8a /src/crimson/os | |
parent | crimson/os/seastore/rbm: remove unnecessary copy during ool write (diff) | |
download | ceph-8fccda90d5bb35c646b9716e0b939a5979e7d545.tar.xz ceph-8fccda90d5bb35c646b9716e0b939a5979e7d545.zip |
crimson/os/seastore/rbm: add assert to check if bptr is page-aligned
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
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(); |