[PATCH 1/3] mm/vmstat: correct some wrong comments
From: Miaohe Lin
Date: Thu Jul 15 2021 - 08:29:07 EST
Correct wrong fls(mem+1) to fls(mem)+1 and remove the duplicated
comment with quiet_vmstat().
Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
---
mm/vmstat.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/mm/vmstat.c b/mm/vmstat.c
index b0534e068166..57e8e7fda7aa 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -204,7 +204,7 @@ int calculate_normal_threshold(struct zone *zone)
*
* Some sample thresholds:
*
- * Threshold Processors (fls) Zonesize fls(mem+1)
+ * Threshold Processors (fls) Zonesize fls(mem)+1
* ------------------------------------------------------------------
* 8 1 1 0.9-1 GB 4
* 16 2 2 0.9-1 GB 4
@@ -1873,11 +1873,6 @@ static void vmstat_update(struct work_struct *w)
}
}
-/*
- * Switch off vmstat processing and then fold all the remaining differentials
- * until the diffs stay at zero. The function is used by NOHZ and can only be
- * invoked when tick processing is not active.
- */
/*
* Check if the diffs for a certain cpu indicate that
* an update is needed.
--
2.23.0