]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: use block_size for allocator unit
authorSage Weil <sage@redhat.com>
Tue, 6 Sep 2016 19:28:14 +0000 (15:28 -0400)
committerSage Weil <sage@redhat.com>
Wed, 7 Sep 2016 15:26:06 +0000 (11:26 -0400)
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 <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index 2dce64b61eb6927b7b0f913e03754ee50b439c57..a9274cd8b494442664bb44859338fd42fe0e99ea 100644 (file)
@@ -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