mm: mm_event: fix compact_scan
authorMinchan Kim <minchan@google.com>
Mon, 28 Jan 2019 11:00:33 +0000 (20:00 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:01 +0000 (20:24 +0300)
It fixes double counting of COMPACTFREE_SCANNED.

Mot-CRs-fixed: (CR)

Bug: 80168800
Change-Id: I38ef432ecf44ba94988f5a4ec9c69bcb5d20fdce
Signed-off-by: Minchan Kim <minchan@google.com>
Reviewed-on: https://gerrit.mot.com/1453730
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

mm/mm_event.c

index 383d4bb6378a23bfb581e319e11b46e048a1cef2..f5281cd80b0f6828752a4bec5bc5aee90b891d39 100644 (file)
@@ -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);