]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: do not require min_length to be power of two for bmap
authorIgor Fedotov <ifedotov@suse.com>
Thu, 13 Feb 2020 22:06:46 +0000 (01:06 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 13 Apr 2020 13:12:43 +0000 (16:12 +0300)
allocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/fastbmap_allocator_impl.h

index a584265527c1b67f12423ffd5914eec0a639f58d..7dcbec30ec54f3361ce12a774120cc42f12be1e8 100644 (file)
@@ -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);