]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: fix typos and grammar error in comments
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Wed, 2 Jun 2021 03:53:03 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:53:03 +0000 (13:53 +1000)
We moves tha -> We move that in mm/swap.c
statments -> statements in include/linux/mm.h

Link: https://lkml.kernel.org/r/20210509063444.GA24745@hyeyoo
Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/mm.h
mm/swap.c

index ed21a97a1aa8cd0acc8b288386d0a31e3812e3b0..ef9ea6dfefff5ad0a0c321304c01349ae738b575 100644 (file)
@@ -155,7 +155,7 @@ extern int mmap_rnd_compat_bits __read_mostly;
 /* This function must be updated when the size of struct page grows above 80
  * or reduces below 56. The idea that compiler optimizes out switch()
  * statement, and only leaves move/store instructions. Also the compiler can
- * combine write statments if they are both assignments and can be reordered,
+ * combine write statements if they are both assignments and can be reordered,
  * this can result in several of the writes here being dropped.
  */
 #define        mm_zero_struct_page(pp) __mm_zero_struct_page(pp)
index 18cc9e63515b84c0b31b02c6fbcbdddd2c7259c1..1958d5feb148624dfef931d5568140def728e264 100644 (file)
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -554,7 +554,7 @@ static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec)
        } else {
                /*
                 * The page's writeback ends up during pagevec
-                * We moves tha page into tail of inactive.
+                * We move that page into tail of inactive.
                 */
                add_page_to_lru_list_tail(page, lruvec);
                __count_vm_events(PGROTATED, nr_pages);