From: Sage Weil Date: Tue, 6 Sep 2016 19:28:14 +0000 (-0400) Subject: os/bluestore: use block_size for allocator unit X-Git-Tag: v11.0.1~304^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dcc58c9b93f34fa979fd61973f3affa3e8a442e5;p=ceph-ci.git os/bluestore: use block_size for allocator unit We need to handle objects written during previous mounts that may have had a smaller min_alloc_size. Use block_size, which is a safe lower bound. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 2dce64b61eb..a9274cd8b49 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -2724,7 +2724,7 @@ int BlueStore::_open_alloc() assert(bdev->get_size()); alloc = Allocator::create(g_conf->bluestore_allocator, bdev->get_size(), - min_alloc_size); + block_size); uint64_t num = 0, bytes = 0; // initialize from freelist