From 357b4c015c22c53c14f3a2bb30c56338b9e2ee5a Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Wed, 18 Dec 2024 11:24:38 +0100 Subject: [PATCH] Reapply "mm: Add likelihood labels to quiet_vmstat conditions" This reverts commit 46ff115435f102bdff9ef4244011b1b171e07a97. --- mm/vmstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 21eda92e0..5267c4e03 100755 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1922,13 +1922,13 @@ static bool need_update(int cpu) */ void quiet_vmstat(void) { - if (system_state != SYSTEM_RUNNING) + if (unlikely(system_state != SYSTEM_RUNNING)) return; if (!delayed_work_pending(this_cpu_ptr(&vmstat_work))) return; - if (!need_update(smp_processor_id())) + if (likely(!need_update(smp_processor_id()))) return; /*