]> git.apps.os.sepia.ceph.com Git - ceph.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>
Sat, 25 Jul 2020 10:55:22 +0000 (13:55 +0300)
allocator.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 21532045efeb8d357518686df84a529ee3d32a60)

 Conflicts:
src/os/bluestore/fastbmap_allocator_impl.h
 variable rename

src/os/bluestore/fastbmap_allocator_impl.h

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