Merge pull request #14876 from liewegas/wip-bluestore-alloc

os/bluestore: roundoff bluefs allocs to bluefs_alloc_size

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-04-30 10:02:44 -05:00 committed by GitHub
commit 1a0cfc4dcb

View 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);