mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
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:
commit
1a0cfc4dcb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user