Skip to contentSkip to conversation

mm: fix typo in the comment when calling function __SetPageUptodate()

PATCH New Wei Yang 1 participant 1 message Sep 26, 2019

Subsystems (3)
lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 mm: fix typo in the comment when calling function __SetPageUptodate()

There are several places emphasise the effect of __SetPageUptodate(), while the comment seems to have a typo in two places.

---
 mm/memory.c      | 2 +-
 mm/userfaultfd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
mm/memory.c +1 -1
index b1ca51a079f2..3ac2803d49b8 100644
@@ -3009,7 +3009,7 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf)
 
 	/*
 	 * The memory barrier inside __SetPageUptodate makes sure that
-	 * preceeding stores to the page contents become visible before
+	 * preceding stores to the page contents become visible before
 	 * the set_pte_at() write.
 	 */
 	__SetPageUptodate(page);
mm/userfaultfd.c +1 -1
index 80834c644692..c153344774c7 100644
@@ -90,7 +90,7 @@ static int mcopy_atomic_pte(struct mm_struct *dst_mm,
 
 	/*
 	 * The memory barrier inside __SetPageUptodate makes sure that
-	 * preceeding stores to the page contents become visible before
+	 * preceding stores to the page contents become visible before
 	 * the set_pte_at() write.
 	 */
 	__SetPageUptodate(page);
Signature · 1 line
2.17.1