lkml.org 
[lkml]   [2019]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 03/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry()
Date
Because "order" will never be negative in should_compact_retry(),
so just make "order" unsigned int.

Signed-off-by: Pengfei Li <lpf.vector@gmail.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
\
 
 \ /
  Last update: 2019-07-25 20:44    [W:0.073 / U:9.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site