All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/hugetlb: fix typos in comments
@ 2025-12-18 11:46 klourencodev
  0 siblings, 0 replies; only message in thread
From: klourencodev @ 2025-12-18 11:46 UTC (permalink / raw)
  To: linux-mm; +Cc: muchun.song, osalvador, Kevin Lourenco, Kevin Lourenco

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-18 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 11:46 [PATCH] mm/hugetlb: fix typos in comments klourencodev

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.