diff mbox series

[1/3] mm/vmstat: correct some wrong comments

Message ID 20210715122911.15700-2-linmiaohe@huawei.com (mailing list archive)
State New
Headers show
Series Cleanup for vmstat | expand

Commit Message

Miaohe Lin July 15, 2021, 12:29 p.m. UTC
Correct wrong fls(mem+1) to fls(mem)+1 and remove the duplicated
comment with quiet_vmstat().

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 mm/vmstat.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

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.