]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: gift freespace to bluefs based on shared_alloc_size
authorSage Weil <sage@redhat.com>
Mon, 19 Aug 2019 13:47:40 +0000 (08:47 -0500)
committerSage Weil <sage@redhat.com>
Tue, 20 Aug 2019 15:29:27 +0000 (10:29 -0500)
This does not appear in master because this code was removed with the
allocator fallback behavior, which was not backported.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 98c04c48c318ea15fdcbb331f879d9a962243559)

src/os/bluestore/BlueStore.cc

index 7cd2ca7fbbde74c58b564b70b86eb8955bb3b8b6..06fdddd599d731307a934a6c4e77da12b312fff8 100644 (file)
@@ -5354,7 +5354,8 @@ int BlueStore::_balance_bluefs_freespace(PExtentVector *extents)
     dout(10) << __func__ << " gifting " << gift
             << " (" << byte_u_t(gift) << ")" << dendl;
 
-    int64_t alloc_len = alloc->allocate(gift, cct->_conf->bluefs_alloc_size,
+    int64_t alloc_len = alloc->allocate(gift,
+                                       cct->_conf->bluefs_shared_alloc_size,
                                        0, 0, extents);
 
     if (alloc_len <= 0) {