Skip to content
Commit ad500fb2 authored by Peng Zhang's avatar Peng Zhang Committed by Mike Rapoport (IBM)
Browse files

memblock: Make a boundary tighter in memblock_add_range().



When type->cnt * 2 + 1 is less than or equal to type->max, there is
enough empty regions to insert.

Signed-off-by: default avatarPeng Zhang <zhangpeng.00@bytedance.com>
Link: https://lore.kernel.org/r/20230129090034.12310-2-zhangpeng.00@bytedance.com


Signed-off-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
parent 6d796c50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment