mm/hugetlb: fix typos in comments
Subsystems (2)
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.
Signed-off-by Kevin Lourenco <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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