Reviewed-by: brutisso
Refactored shrink_by() to only use region counts and not byte sizes Reviewed-by: johnc, tschatzl