From 6744a5f1cacced923f7047017d73a3716822981b Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 30 Mar 2016 09:06:04 +0530 Subject: [PATCH] bluefs: use Allocator::create() to instantiate allocator Signed-off-by: Venky Shankar --- src/os/bluestore/BlueFS.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 5a24f13bb16..8b168343fd7 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -8,8 +8,6 @@ #include "common/perf_counters.h" #include "BlockDevice.h" #include "Allocator.h" -#include "StupidAllocator.h" - #define dout_subsys ceph_subsys_bluefs #undef dout_prefix @@ -282,7 +280,7 @@ void BlueFS::_init_alloc() for (unsigned id = 0; id < bdev.size(); ++id) { if (!bdev[id]) continue; - alloc[id] = new StupidAllocator; + alloc[id] = Allocator::create("stupid"); interval_set& p = block_all[id]; for (interval_set::iterator q = p.begin(); q != p.end(); ++q) { alloc[id]->init_add_free(q.get_start(), q.get_len());