Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/bluestore: fix assertion in StupidAllocator::get_fragmentation
One might face an assertion (assert(intervals <= max_intervals)) in StupidAllocator::get_fragmentation method for clusters created by early Luminous releases and before. The root cause is that block volume size wasn't aligned with min_alloc_size and hence we missed that last fraction interval during max_interval calculation. Signed-off-by: Igor Fedotov <ifedotov@suse.com> (cherry picked from commit a60b231)
- Loading branch information