Skip to content

Commit e8da368

Browse files
grb72t3ydeakpm00
authored andcommitted
mm, docs: fix comments that mention mem_hotplug_end()
Comments that mention mem_hotplug_end() are confusing as there is no function called mem_hotplug_end(). Fix them by replacing all the occurences of mem_hotplug_end() in the comments with mem_hotplug_done(). [[email protected]: grammatical fixes] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yun-Ze Li <[email protected]> Cc: Souptick Joarder <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3093484 commit e8da368

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/linux/mmzone.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ struct zone {
591591
* give them a chance of being in the same cacheline.
592592
*
593593
* Write access to present_pages at runtime should be protected by
594-
* mem_hotplug_begin/end(). Any reader who can't tolerant drift of
595-
* present_pages should get_online_mems() to get a stable value.
594+
* mem_hotplug_begin/done(). Any reader who can't tolerant drift of
595+
* present_pages should use get_online_mems() to get a stable value.
596596
*/
597597
atomic_long_t managed_pages;
598598
unsigned long spanned_pages;
@@ -870,7 +870,7 @@ typedef struct pglist_data {
870870
unsigned long nr_reclaim_start; /* nr pages written while throttled
871871
* when throttling started. */
872872
struct task_struct *kswapd; /* Protected by
873-
mem_hotplug_begin/end() */
873+
mem_hotplug_begin/done() */
874874
int kswapd_order;
875875
enum zone_type kswapd_highest_zoneidx;
876876

mm/compaction.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3011,7 +3011,7 @@ void kcompactd_run(int nid)
30113011

30123012
/*
30133013
* Called by memory hotplug when all memory in a node is offlined. Caller must
3014-
* hold mem_hotplug_begin/end().
3014+
* be holding mem_hotplug_begin/done().
30153015
*/
30163016
void kcompactd_stop(int nid)
30173017
{

mm/vmscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4645,7 +4645,7 @@ void kswapd_run(int nid)
46454645

46464646
/*
46474647
* Called by memory hotplug when all memory in a node is offlined. Caller must
4648-
* hold mem_hotplug_begin/end().
4648+
* be holding mem_hotplug_begin/done().
46494649
*/
46504650
void kswapd_stop(int nid)
46514651
{

0 commit comments

Comments
 (0)