Returning 0 from _balance_bluefs_freespace() skips recording
allocations in the superblock, so we fail the consistency check on
startup. The elseif branch handles this case already, so just remove
it from the first branch. This is luminous/mimic specific, since
bluefs extents are not recorded in the superblock in later releases.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
cct->_conf->bluefs_shared_alloc_size,
0, 0, extents);
}
- if (alloc_len <= 0 || alloc_len < gift) {
+ if (alloc_len <= 0) {
dout(0) << __func__ << " no allocate on 0x" << std::hex << gift << std::dec
<< dendl;
_dump_alloc_on_rebalance_failure();