mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/hugetlb: fix misspelled parameter names in comment
@ 2026-09-15  8:20 Zhenghui Hao
  2026-09-15  8:35 ` Muchun Song
  2026-09-16  1:23 ` SJ Park
  0 siblings, 2 replies; 3+ messages in thread
From: Zhenghui Hao @ 2026-09-15  8:20 UTC (permalink / raw)
  To: linux-mm
  Cc: Zhenghui Hao, Muchun Song, Oscar Salvador, David Hildenbrand,
	Andrew Morton, linux-kernel

The comment above hugepages_setup() refers to "hugepagsz" and
"default_hugepagsz", but the parameters parsed by this code are
"hugepagesz" and "default_hugepagesz".  Fix the spelling and also drop
the redundant spaces so the comment reads normally.

No functional change.

Signed-off-by: Zhenghui Hao <zhenghui.hao@qq.com>
---
 mm/hugetlb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 4f6f58bf3db6..68b97893a376 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -4268,9 +4268,9 @@ static __init void hugetlb_parse_params(void)
 
 /*
  * hugepages command line processing
- * hugepages normally follows a valid hugepagsz or default_hugepagsz
- * specification.  If not, ignore the hugepages value.  hugepages can also
- * be the first huge page command line  option in which case it implicitly
+ * hugepages normally follows a valid hugepagesz or default_hugepagesz
+ * specification. If not, ignore the hugepages value. hugepages can also
+ * be the first huge page command line option in which case it implicitly
  * specifies the number of huge pages for the default size.
  */
 static int __init hugepages_setup(char *s)
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm/hugetlb: fix misspelled parameter names in comment
  2026-09-15  8:20 [PATCH] mm/hugetlb: fix misspelled parameter names in comment Zhenghui Hao
@ 2026-09-15  8:35 ` Muchun Song
  2026-09-16  1:23 ` SJ Park
  1 sibling, 0 replies; 3+ messages in thread
From: Muchun Song @ 2026-09-15  8:35 UTC (permalink / raw)
  To: Zhenghui Hao
  Cc: linux-mm, Oscar Salvador, David Hildenbrand, Andrew Morton, linux-kernel



> On Sep 15, 2026, at 16:20, Zhenghui Hao <zhenghui.hao@qq.com> wrote:
> 
> The comment above hugepages_setup() refers to "hugepagsz" and
> "default_hugepagsz", but the parameters parsed by this code are
> "hugepagesz" and "default_hugepagesz".  Fix the spelling and also drop
> the redundant spaces so the comment reads normally.
> 
> No functional change.
> 
> Signed-off-by: Zhenghui Hao <zhenghui.hao@qq.com>

Thanks. This makes tree-wide searches for these command-line
parameters more reliable.

Acked-by: Muchun Song <muchun.song@linux.dev>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm/hugetlb: fix misspelled parameter names in comment
  2026-09-15  8:20 [PATCH] mm/hugetlb: fix misspelled parameter names in comment Zhenghui Hao
  2026-09-15  8:35 ` Muchun Song
@ 2026-09-16  1:23 ` SJ Park
  1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-09-16  1:23 UTC (permalink / raw)
  To: Zhenghui Hao
  Cc: SJ Park, linux-mm, Muchun Song, Oscar Salvador,
	David Hildenbrand, Andrew Morton, linux-kernel

On Tue, 15 Sep 2026 16:20:29 +0800 Zhenghui Hao <zhenghui.hao@qq.com> wrote:

> The comment above hugepages_setup() refers to "hugepagsz" and
> "default_hugepagsz", but the parameters parsed by this code are
> "hugepagesz" and "default_hugepagesz".  Fix the spelling and also drop
> the redundant spaces so the comment reads normally.
> 
> No functional change.

Looks good to me.

> 
> Signed-off-by: Zhenghui Hao <zhenghui.hao@qq.com>

Reviewed-by: SJ Park <sj@kernel.org>


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-16  1:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15  8:20 [PATCH] mm/hugetlb: fix misspelled parameter names in comment Zhenghui Hao
2026-09-15  8:35 ` Muchun Song
2026-09-16  1:23 ` SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®