From 79dfca049fdc9c21f6c672e2eae4a3592e8e53e8 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Mon, 28 Jan 2019 20:00:33 +0900 Subject: [PATCH] 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 --- mm/mm_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1