From: Minchan Kim Date: Mon, 28 Jan 2019 11:00:33 +0000 (+0900) Subject: mm: mm_event: fix compact_scan X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79dfca049fdc9c21f6c672e2eae4a3592e8e53e8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm: mm_event: fix compact_scan It fixes double counting of COMPACTFREE_SCANNED. Mot-CRs-fixed: (CR) Bug: 80168800 Change-Id: I38ef432ecf44ba94988f5a4ec9c69bcb5d20fdce Signed-off-by: Minchan Kim Reviewed-on: https://gerrit.mot.com/1453730 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/mm/mm_event.c b/mm/mm_event.c index 383d4bb6378a..f5281cd80b0f 100644 --- a/mm/mm_event.c +++ b/mm/mm_event.c @@ -67,7 +67,7 @@ static void record_vmstat(void) vmstat.reclaim_scan += this->event[PGSCAN_DIRECT] + this->event[PGSCAN_KSWAPD]; vmstat.compact_scan += this->event[COMPACTFREE_SCANNED] + - this->event[COMPACTFREE_SCANNED]; + this->event[COMPACTMIGRATE_SCANNED]; } put_online_cpus(); trace_mm_event_vmstat_record(&vmstat);