[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190725184253.21160-4-lpf.vector@gmail.com>
Date: Fri, 26 Jul 2019 02:42:46 +0800
From: Pengfei Li <lpf.vector@...il.com>
To: akpm@...ux-foundation.org
Cc: mgorman@...hsingularity.net, mhocko@...e.com, vbabka@...e.cz,
cai@....pw, aryabinin@...tuozzo.com, osalvador@...e.de,
rostedt@...dmis.org, mingo@...hat.com,
pavel.tatashin@...rosoft.com, rppt@...ux.ibm.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Pengfei Li <lpf.vector@...il.com>
Subject: [PATCH 03/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry()
Because "order" will never be negative in should_compact_retry(),
so just make "order" unsigned int.
Signed-off-by: Pengfei Li <lpf.vector@...il.com>
---
mm/page_alloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 1432cbcd87cd..7d47af09461f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -839,7 +839,7 @@ static inline struct capture_control *task_capc(struct zone *zone)
static inline bool
compaction_capture(struct capture_control *capc, struct page *page,
- int order, int migratetype)
+ unsigned int order, int migratetype)
{
if (!capc || order != capc->cc->order)
return false;
@@ -870,7 +870,7 @@ static inline struct capture_control *task_capc(struct zone *zone)
static inline bool
compaction_capture(struct capture_control *capc, struct page *page,
- int order, int migratetype)
+ unsigned int order, int migratetype)
{
return false;
}
--
2.21.0
Powered by blists - more mailing lists