mm: fix typos in comments when calling __SetPageUptodate()
authorWei Yang <richardw.yang@linux.intel.com>
Sun, 1 Dec 2019 01:58:17 +0000 (17:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 20:59:10 +0000 (12:59 -0800)
There are several places emphasise the effect of __SetPageUptodate(),
while the comment seems to have a typo in two places.

Link: http://lkml.kernel.org/r/20190926023705.7226-1-richardw.yang@linux.intel.com
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c
mm/userfaultfd.c

index c390220..513c3ec 100644 (file)
@@ -3105,7 +3105,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);
index a10aa85..1b0d7ab 100644 (file)
@@ -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);