]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: roundoff bluefs allocs to bluefs_alloc_size 14876/head
authorRamesh Chander <Ramesh.Chander@sandisk.com>
Tue, 7 Feb 2017 03:27:31 +0000 (19:27 -0800)
committerSage Weil <sage@redhat.com>
Fri, 28 Apr 2017 19:15:33 +0000 (15:15 -0400)
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
src/os/bluestore/BlueStore.cc

index 61ada2584fff3102828db8156417a6a699019fcb..4f18b7affde6c1111c967be31e745320a473f94e 100644 (file)
@@ -4512,7 +4512,7 @@ int BlueStore::_balance_bluefs_freespace(PExtentVector *extents)
 
   if (gift) {
     // round up to alloc size
-    gift = P2ROUNDUP(gift, min_alloc_size);
+    gift = P2ROUNDUP(gift, cct->_conf->bluefs_alloc_size);
 
     // hard cap to fit into 32 bits
     gift = MIN(gift, 1ull<<31);