All of lore.kernel.org
 help / color / mirror / Atom feed
From: klourencodev@gmail.com
To: linux-mm@kvack.org
Cc: muchun.song@linux.dev, osalvador@suse.de,
	Kevin Lourenco <klourencodev@gmail.com>,
	Kevin Lourenco <k.lourenco@criteo.com>
Subject: [PATCH] mm/hugetlb: fix typos in comments
Date: Thu, 18 Dec 2025 12:46:05 +0100	[thread overview]
Message-ID: <20251218114605.12502-1-klourencodev@gmail.com> (raw)

From: Kevin Lourenco <klourencodev@gmail.com>

Correct minor spelling mistakes in several files under hugetlb files.
No functional changes.

Signed-off-by: Kevin Lourenco <k.lourenco@criteo.com>
---
 mm/hugetlb.c         | 2 +-
 mm/hugetlb_sysfs.c   | 2 +-
 mm/hugetlb_vmemmap.c | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 51273baec9e5..07b182550892 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1342,7 +1342,7 @@ static struct folio *dequeue_hugetlb_folio_nodemask(struct hstate *h, gfp_t gfp_
 	struct zoneref *z;
 	int node = NUMA_NO_NODE;
 
-	/* 'nid' should not be NUMA_NO_NODE. Try to catch any misuse of it and rectifiy. */
+	/* 'nid' should not be NUMA_NO_NODE. Try to catch any misuse of it and rectify. */
 	if (nid == NUMA_NO_NODE)
 		nid = numa_node_id();
 
diff --git a/mm/hugetlb_sysfs.c b/mm/hugetlb_sysfs.c
index 79ece91406bf..4fd1c7566450 100644
--- a/mm/hugetlb_sysfs.c
+++ b/mm/hugetlb_sysfs.c
@@ -208,7 +208,7 @@ static ssize_t demote_store(struct kobject *kobj,
 		long rc;
 
 		/*
-		 * Check for available pages to demote each time thorough the
+		 * Check for available pages to demote each time through the
 		 * loop as demote_pool_huge_page will drop hugetlb_lock.
 		 */
 		if (nid != NUMA_NO_NODE)
diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c
index 9d01f883fd71..3c8389e8c5ff 100644
--- a/mm/hugetlb_vmemmap.c
+++ b/mm/hugetlb_vmemmap.c
@@ -746,7 +746,7 @@ void hugetlb_vmemmap_optimize_bootmem_folios(struct hstate *h, struct list_head
 
 #ifdef CONFIG_SPARSEMEM_VMEMMAP_PREINIT
 
-/* Return true of a bootmem allocated HugeTLB page should be pre-HVO-ed */
+/* Return true if a bootmem allocated HugeTLB page should be pre-HVO-ed */
 static bool vmemmap_should_optimize_bootmem_page(struct huge_bootmem_page *m)
 {
 	unsigned long section_size, psize, pmd_vmemmap_size;
@@ -795,7 +795,7 @@ void __init hugetlb_vmemmap_init_early(int nid)
 	void *map;
 
 	/*
-	 * Noting to do if bootmem pages were not allocated
+	 * Nothing to do if bootmem pages were not allocated
 	 * early in boot, or if HVO wasn't enabled in the
 	 * first place.
 	 */
-- 
2.47.3



                 reply	other threads:[~2025-12-18 11:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251218114605.12502-1-klourencodev@gmail.com \
    --to=klourencodev@gmail.com \
    --cc=k.lourenco@criteo.com \
    --cc=linux-mm@kvack.org \
    --cc=muchun.song@linux.dev \
    --cc=osalvador@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.