summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun-Ze Li <p76091292@gs.ncku.edu.tw>2022-06-20 07:15:16 +0000
committerLiam R. Howlett <Liam.Howlett@oracle.com>2022-07-19 20:15:11 -0400
commit9a43ac95041ad03a608015f2cc29881106402c0c (patch)
treece8786684a0f1afa797a127b99e01169f380bc94
parent616b44071e3ced78f38e52f6d89a9d94781c5d27 (diff)
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(). Link: https://lkml.kernel.org/r/20220620071516.1286101-1-p76091292@gs.ncku.edu.tw Signed-off-by: Yun-Ze Li <p76091292@gs.ncku.edu.tw> Cc: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/mmzone.h4
-rw-r--r--mm/compaction.c2
-rw-r--r--mm/vmscan.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2b5757752333..35a2c8e18107 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -591,7 +591,7 @@ struct zone {
* give them a chance of being in the same cacheline.
*
* Write access to present_pages at runtime should be protected by
- * mem_hotplug_begin/end(). Any reader who can't tolerant drift of
+ * mem_hotplug_begin/done(). Any reader who can't tolerant drift of
* present_pages should get_online_mems() to get a stable value.
*/
atomic_long_t managed_pages;
@@ -870,7 +870,7 @@ typedef struct pglist_data {
unsigned long nr_reclaim_start; /* nr pages written while throttled
* when throttling started. */
struct task_struct *kswapd; /* Protected by
- mem_hotplug_begin/end() */
+ mem_hotplug_begin/done() */
int kswapd_order;
enum zone_type kswapd_highest_zoneidx;
diff --git a/mm/compaction.c b/mm/compaction.c
index fe49ac9aedd8..8f30b863c63f 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -3030,7 +3030,7 @@ void kcompactd_run(int nid)
/*
* Called by memory hotplug when all memory in a node is offlined. Caller must
- * hold mem_hotplug_begin/end().
+ * be hold mem_hotplug_begin/done().
*/
void kcompactd_stop(int nid)
{
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 51b1607c81e4..c47d7cafa4a8 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -4645,7 +4645,7 @@ void kswapd_run(int nid)
/*
* Called by memory hotplug when all memory in a node is offlined. Caller must
- * hold mem_hotplug_begin/end().
+ * be hold mem_hotplug_begin/done().
*/
void kswapd_stop(int nid)
{