]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-docs-fix-comments-that-mention-mem_hotplug_end-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 22 Jun 2022 00:05:38 +0000 (17:05 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:11 +0000 (20:15 -0400)
grammatical fixes

Cc: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Yun-Ze Li <p76091292@gs.ncku.edu.tw>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/compaction.c
mm/vmscan.c

index 35a2c8e181077ddb49e64d7b7934e01f2901ae2e..735bf5b379491a908b3b149f53aa3462207a6c92 100644 (file)
@@ -592,7 +592,7 @@ struct zone {
         *
         * Write access to present_pages at runtime should be protected by
         * mem_hotplug_begin/done(). Any reader who can't tolerant drift of
-        * present_pages should get_online_mems() to get a stable value.
+        * present_pages should use get_online_mems() to get a stable value.
         */
        atomic_long_t           managed_pages;
        unsigned long           spanned_pages;
index 8f30b863c63f2769120964beaed8236f34716149..2101ef2bf10932b57414281f7e9c7062aa8b76a4 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
- * be hold mem_hotplug_begin/done().
+ * be holding mem_hotplug_begin/done().
  */
 void kcompactd_stop(int nid)
 {
index c47d7cafa4a84948ca09db8a855778f4b03bba3f..893b881711cbf2c977872c3353afeaf06d33247c 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
- * be hold mem_hotplug_begin/done().
+ * be holding mem_hotplug_begin/done().
  */
 void kswapd_stop(int nid)
 {