diff mbox series

[03/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry()

Message ID 20190725184253.21160-4-lpf.vector@gmail.com (mailing list archive)
State New, archived
Headers show
Series [01/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry() | expand

Commit Message

Pengfei Li July 25, 2019, 6:42 p.m. UTC
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 mbox series

Patch

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;
 }