lkml.org 
[lkml]   [2020]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] mm/memblock:Do not retry a range that has already been checked
The range that has already been checked
don't have to be checked in a second attempt.

Signed-off-by: daeroro <skseofh@naver.com>
---
mm/memblock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memblock.c b/mm/memblock.c
index 39aceafc57f6..6f72fae415ee 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -1489,7 +1489,7 @@ static void * __init memblock_alloc_internal(

/* retry allocation without lower limit */
if (!alloc && min_addr)
- alloc = memblock_alloc_range_nid(size, align, 0, max_addr, nid,
+ alloc = memblock_alloc_range_nid(size, align, 0, min_addr, nid,
exact_nid);

if (!alloc)
--
2.17.1
\
 
 \ /
  Last update: 2020-05-24 16:18    [W:0.043 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site