From: Sage Weil Date: Thu, 19 May 2016 16:12:17 +0000 (-0400) Subject: os/bluestore: drop min_alloc_size locals X-Git-Tag: v11.0.0~359^2~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0a99cbfa2f2eff4dcc986aa21ef91f18254eaf97;p=ceph.git os/bluestore: drop min_alloc_size locals We have this in the class, now. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ff6496d4d68e..38abe4979472 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1048,7 +1048,6 @@ int BlueStore::_open_fm(bool create) dout(1) << __func__ << " pre-fragmenting freespace, using " << g_conf->bluestore_debug_prefill << " with max free extent " << g_conf->bluestore_debug_prefragment_max << dendl; - uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; uint64_t start = ROUND_UP_TO(reserved, min_alloc_size); uint64_t max_b = g_conf->bluestore_debug_prefragment_max / min_alloc_size; float r = g_conf->bluestore_debug_prefill; @@ -1595,7 +1594,6 @@ int BlueStore::_balance_bluefs_freespace(vector *extents, if (gift) { // round up to alloc size - uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; gift = ROUND_UP_TO(gift, min_alloc_size); // hard cap to fit into 32 bits @@ -1625,7 +1623,6 @@ int BlueStore::_balance_bluefs_freespace(vector *extents, // reclaim from bluefs? if (reclaim) { // round up to alloc size - uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; reclaim = ROUND_UP_TO(reclaim, min_alloc_size); // hard cap to fit into 32 bits @@ -5307,7 +5304,6 @@ void BlueStore::_do_write_small( { dout(10) << __func__ << " 0x" << std::hex << offset << "~0x" << length << std::dec << dendl; - const uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; assert(length < min_alloc_size); bufferlist bl; @@ -5596,7 +5592,6 @@ int BlueStore::_do_alloc_write( return r; } - uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; assert(wctx->blob_new.size() == wctx->bl_new.size()); vector::iterator bp = wctx->blob_new.begin(); vector::iterator blp = wctx->bl_new.begin(); @@ -5710,7 +5705,6 @@ int BlueStore::_do_write( } uint64_t end = offset + length; - uint64_t min_alloc_size = g_conf->bluestore_min_alloc_size; WriteContext wctx; wctx.fadvise_flags = fadvise_flags;