Skip to contentSkip to conversation

mm: Fix typos in comments

PATCH Applied Lu Jialin 1 participant 1 message Apr 8, 2021

Subsystems (6)
lore
Share & tools
lore

Lu Jialin

author
#0 lore raw

PATCH 1/1 mm: Fix typos in comments

succed -> succeed in mm/hugetlb.c wil -> will in mm/mempolicy.c
wit -> with in mm/page_alloc.c Retruns -> Returns in mm/page_vma_mapped.c confict -> conflict in mm/secretmem.c No functionality changed.

---
 mm/hugetlb.c         | 2 +-
 mm/mempolicy.c       | 2 +-
 mm/page_alloc.c      | 2 +-
 mm/page_vma_mapped.c | 2 +-
 mm/secretmem.c       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
mm/hugetlb.c +1 -1
index c22111f3da20..e414534e1fc4 100644
@@ -2304,7 +2304,7 @@ static int alloc_and_dissolve_huge_page(struct hstate *h, struct page *old_page,
 	} else if (!HPageFreed(old_page)) {
 		/*
 		 * Page's refcount is 0 but it has not been enqueued in the
-		 * freelist yet. Race window is small, so we can succed here if
+		 * freelist yet. Race window is small, so we can succeed here if
 		 * we retry.
 		 */
 		spin_unlock(&hugetlb_lock);
mm/mempolicy.c +1 -1
index 5690513c5668..d79fa299b70c 100644
@@ -994,7 +994,7 @@ static long do_get_mempolicy(int *policy, nodemask_t *nmask,
 		if (flags & MPOL_F_ADDR) {
 			/*
 			 * Take a refcount on the mpol, lookup_node()
-			 * wil drop the mmap_lock, so after calling
+			 * will drop the mmap_lock, so after calling
 			 * lookup_node() only "pol" remains valid, "vma"
 			 * is stale.
 			 */
mm/page_alloc.c +1 -1
index 604dcd69397b..b457cc316009 100644
@@ -4173,7 +4173,7 @@ __alloc_pages_may_oom(gfp_t gfp_mask, unsigned int order,
 }
 
 /*
- * Maximum number of compaction retries wit a progress before OOM
+ * Maximum number of compaction retries with a progress before OOM
  * killer is consider as the only way to move forward.
  */
 #define MAX_COMPACT_RETRIES 16
mm/page_vma_mapped.c +1 -1
index 86e3a3688d59..2cf01d933f13 100644
@@ -134,7 +134,7 @@ static bool check_pte(struct page_vma_mapped_walk *pvmw)
  * regardless of which page table level the page is mapped at. @pvmw->pmd is
  * NULL.
  *
- * Retruns false if there are no more page table entries for the page in
+ * Returns false if there are no more page table entries for the page in
  * the vma. @pvmw->ptl is unlocked and @pvmw->pte is unmapped.
  *
  * If you need to stop the walk before page_vma_mapped_walk() returned false,
mm/secretmem.c +1 -1
index 3b1ba3991964..38e22c45e482 100644
@@ -204,7 +204,7 @@ SYSCALL_DEFINE1(memfd_secret, unsigned int, flags)
 	struct file *file;
 	int fd, err;
 
-	/* make sure local flags do not confict with global fcntl.h */
+	/* make sure local flags do not conflict with global fcntl.h */
 	BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC);
 
 	if (!secretmem_enable)
Signature · 1 line
2.17.1