]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm, docs: fix comments that mention mem_hotplug_end()
authorYun-Ze Li <p76091292@gs.ncku.edu.tw>
Mon, 20 Jun 2022 07:15:16 +0000 (07:15 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:11 +0000 (20:15 -0400)
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>
include/linux/mmzone.h
mm/compaction.c
mm/vmscan.c

index 2b5757752333b38f8ffdd75bfde283278741526e..35a2c8e181077ddb49e64d7b7934e01f2901ae2e 100644 (file)
@@ -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;
 
index fe49ac9aedd854cb00a8659a4c4a73a18529f1e0..8f30b863c63f2769120964beaed8236f34716149 100644 (file)
@@ -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)
 {
index 51b1607c81e4551436926eb392704a6a3a527914..c47d7cafa4a84948ca09db8a855778f4b03bba3f 100644 (file)
@@ -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)
 {