]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/AvlAllocator: use delegated ctor
authorKefu Chai <kchai@redhat.com>
Tue, 1 Jun 2021 10:52:11 +0000 (18:52 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 12 Jun 2021 05:13:30 +0000 (13:13 +0800)
less repeating this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/AvlAllocator.cc

index b7ed21eb0a6aba79a04074aaf96988353b62ea97..0390e6d6ce9a0ecc0e5b9707ca83c1d4dfa31620 100644 (file)
@@ -339,12 +339,7 @@ AvlAllocator::AvlAllocator(CephContext* cct,
                           int64_t device_size,
                           int64_t block_size,
                           std::string_view name) :
-  Allocator(name, device_size, block_size),
-  range_size_alloc_threshold(
-    cct->_conf.get_val<uint64_t>("bluestore_avl_alloc_bf_threshold")),
-  range_size_alloc_free_pct(
-    cct->_conf.get_val<uint64_t>("bluestore_avl_alloc_bf_free_pct")),
-  cct(cct)
+  AvlAllocator(cct, device_size, block_size, 0 /* max_mem */, name)
 {}
 
 AvlAllocator::~AvlAllocator()