From 21532045efeb8d357518686df84a529ee3d32a60 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Fri, 14 Feb 2020 01:06:46 +0300 Subject: [PATCH] os/bluestore: do not require min_length to be power of two for bmap allocator. Signed-off-by: Igor Fedotov --- src/os/bluestore/fastbmap_allocator_impl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/os/bluestore/fastbmap_allocator_impl.h b/src/os/bluestore/fastbmap_allocator_impl.h index a584265527c..7dcbec30ec5 100644 --- a/src/os/bluestore/fastbmap_allocator_impl.h +++ b/src/os/bluestore/fastbmap_allocator_impl.h @@ -634,7 +634,6 @@ protected: { uint64_t prev_allocated = *allocated; uint64_t d = L1_ENTRIES_PER_SLOT; - ceph_assert(isp2(min_length)); ceph_assert(min_length <= l2_granularity); ceph_assert(max_length == 0 || max_length >= min_length); ceph_assert(max_length == 0 || (max_length % min_length) == 0); -- 2.39.5