From: Andrew Morton Date: Wed, 22 Jun 2022 00:05:38 +0000 (-0700) Subject: mm-docs-fix-comments-that-mention-mem_hotplug_end-fix X-Git-Tag: maple_v12_fixes~37 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5c55f42c71fb3924952bf17d77ad7952c607a353;p=users%2Fjedix%2Flinux-maple.git mm-docs-fix-comments-that-mention-mem_hotplug_end-fix grammatical fixes Cc: Souptick Joarder Cc: Yun-Ze Li Signed-off-by: Andrew Morton --- diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 35a2c8e18107..735bf5b37949 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -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; diff --git a/mm/compaction.c b/mm/compaction.c index 8f30b863c63f..2101ef2bf109 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 - * be hold mem_hotplug_begin/done(). + * be holding mem_hotplug_begin/done(). */ void kcompactd_stop(int nid) { diff --git a/mm/vmscan.c b/mm/vmscan.c index c47d7cafa4a8..893b881711cb 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 - * be hold mem_hotplug_begin/done(). + * be holding mem_hotplug_begin/done(). */ void kswapd_stop(int nid) {