Skip to content

Commit ea15ba1

Browse files
MiaoheLintorvalds
authored andcommitted
mm/vmstat: correct some wrong comments
Patch series "Cleanup for vmstat". This series contains cleanups to remove unneeded return value, correct wrong comment and simplify the array size calculation. More details can be found in the respective changelogs. This patch (of 3): Correct wrong fls(mem+1) to fls(mem)+1 and remove the duplicated comment with quiet_vmstat(). Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3198145 commit ea15ba1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mm/vmstat.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ int calculate_normal_threshold(struct zone *zone)
204204
*
205205
* Some sample thresholds:
206206
*
207-
* Threshold Processors (fls) Zonesize fls(mem+1)
207+
* Threshold Processors (fls) Zonesize fls(mem)+1
208208
* ------------------------------------------------------------------
209209
* 8 1 1 0.9-1 GB 4
210210
* 16 2 2 0.9-1 GB 4
@@ -1875,11 +1875,6 @@ static void vmstat_update(struct work_struct *w)
18751875
}
18761876
}
18771877

1878-
/*
1879-
* Switch off vmstat processing and then fold all the remaining differentials
1880-
* until the diffs stay at zero. The function is used by NOHZ and can only be
1881-
* invoked when tick processing is not active.
1882-
*/
18831878
/*
18841879
* Check if the diffs for a certain cpu indicate that
18851880
* an update is needed.

0 commit comments

Comments
 (0)