From dcc58c9b93f34fa979fd61973f3affa3e8a442e5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 6 Sep 2016 15:28:14 -0400 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3