Commit 0b69943f authored by Hongyan Xia's avatar Hongyan Xia Committed by Simon Horman
Browse files

Shrink segments to fit alignment instead of throwing them away



We risk throwing an entire large chunk away if it is just slightly
unaligned which then causes the crash kernel to run out of RAM. Keep
them and shrink them to alignment.

Signed-off-by: default avatarHongyan Xia <hongyxia@amazon.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 774a16b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment