From: Sage Weil Date: Mon, 19 Aug 2019 13:47:40 +0000 (-0500) Subject: os/bluestore: gift freespace to bluefs based on shared_alloc_size X-Git-Tag: v12.2.13~146^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9d4d75d041fdd9cb418ae88ab1e85ff92c45ba4;p=ceph.git os/bluestore: gift freespace to bluefs based on shared_alloc_size 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 (cherry picked from commit 98c04c48c318ea15fdcbb331f879d9a962243559) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 7cd2ca7fbbde..06fdddd599d7 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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) {