Skip to contentSkip to conversation

mm/hugetlb: fix typos in comments

PATCH New [email protected] 1 participant 1 message Dec 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb: fix typos in comments

From: Kevin Lourenco <[email protected]>

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

---
 mm/hugetlb.c         | 2 +-
 mm/hugetlb_sysfs.c   | 2 +-
 mm/hugetlb_vmemmap.c | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
mm/hugetlb.c +1 -1
index 51273baec9e5..07b182550892 100644
@@ -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();
 
mm/hugetlb_sysfs.c +1 -1
index 79ece91406bf..4fd1c7566450 100644
@@ -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)
mm/hugetlb_vmemmap.c +2 -2
index 9d01f883fd71..3c8389e8c5ff 100644
@@ -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.
 	 */
Signature · 1 line
2.47.3