The patch titled Subject: mm, compaction: finish pageblock scanning on contention -fix has been added to the -mm tree. Its filename is mm-compaction-finish-pageblock-scanning-on-contention-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-compaction-finish-pageblock-scanning-on-contention-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-compaction-finish-pageblock-scanning-on-contention-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: YueHaibing <yuehaibing@xxxxxxxxxx> Subject: mm, compaction: finish pageblock scanning on contention -fix Fixes gcc '-Wunused-but-set-variable' warning: mm/compaction.c: In function 'compact_zone': mm/compaction.c:2063:22: warning: variable 'c' set but not used [-Wunused-but-set-variable] mm/compaction.c:2063:19: warning: variable 'b' set but not used [-Wunused-but-set-variable] mm/compaction.c:2063:16: warning: variable 'a' set but not used [-Wunused-but-set-variable] This never used since 94d5992baaa5 ("mm, compaction: finish pageblock scanning on contention"). This is a fix to the mmotm patch broken-out/mm-compaction-finish-pageblock-scanning-on-contention.patch Link: http://lkml.kernel.org/r/20190109111506.GV31517@xxxxxxxxxxxxxxxxxxx Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Huang Ying <ying.huang@xxxxxxxxx> Cc: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 5 ----- 1 file changed, 5 deletions(-) --- a/mm/compaction.c~mm-compaction-finish-pageblock-scanning-on-contention-fix +++ a/mm/compaction.c @@ -1963,7 +1963,6 @@ static enum compact_result compact_zone( unsigned long end_pfn = zone_end_pfn(cc->zone); unsigned long last_migrated_pfn; const bool sync = cc->mode != MIGRATE_ASYNC; - unsigned long a, b, c; cc->migratetype = gfpflags_to_migratetype(cc->gfp_mask); ret = compaction_suitable(cc->zone, cc->order, cc->alloc_flags, @@ -2009,10 +2008,6 @@ static enum compact_result compact_zone( cc->whole_zone = true; } - a = cc->migrate_pfn; - b = cc->free_pfn; - c = (cc->free_pfn - cc->migrate_pfn) / pageblock_nr_pages; - last_migrated_pfn = 0; trace_mm_compaction_begin(start_pfn, cc->migrate_pfn, _ Patches currently in -mm which might be from yuehaibing@xxxxxxxxxx are mm-compaction-finish-pageblock-scanning-on-contention-fix.patch taint-fix-debugfs_simple_attrcocci-warnings.patch fork-remove-duplicated-include-from-forkc.patch