Messages in this thread Patch in this message | | | From | Pengfei Li <> | Subject | [PATCH 04/10] mm/page_alloc: remove never used "order" in alloc_contig_range() | Date | Fri, 26 Jul 2019 02:42:47 +0800 |
| |
The "order" will never be used in alloc_contig_range(), and "order" is a negative number is very strange. So just remove it.
Signed-off-by: Pengfei Li <lpf.vector@gmail.com> --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7d47af09461f..6208ebfac980 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -8347,7 +8347,6 @@ int alloc_contig_range(unsigned long start, unsigned long end, struct compact_control cc = { .nr_migratepages = 0, - .order = -1, .zone = page_zone(pfn_to_page(start)), .mode = MIGRATE_SYNC, .ignore_skip_hint = true, -- 2.21.0
| |