]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/damon: fix a few spelling mistakes in comments and a pr_debug message
authorColin Ian King <colin.i.king@googlemail.com>
Fri, 5 Nov 2021 20:48:24 +0000 (13:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:46 +0000 (13:30 -0700)
There are a few spelling mistakes in the code.  Fix these.

Link: https://lkml.kernel.org/r/20211028184157.614544-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/core.c
mm/damon/dbgfs-test.h
mm/damon/vaddr-test.h

index f37c17b53814869c32fc906a6f449ae8d4029db1..c381b3c525d0bd23739012b081a311a10ec00fd6 100644 (file)
@@ -959,7 +959,7 @@ static unsigned long damos_wmark_wait_us(struct damos *scheme)
        /* higher than high watermark or lower than low watermark */
        if (metric > scheme->wmarks.high || scheme->wmarks.low > metric) {
                if (scheme->wmarks.activated)
-                       pr_debug("inactivate a scheme (%d) for %s wmark\n",
+                       pr_debug("deactivate a scheme (%d) for %s wmark\n",
                                        scheme->action,
                                        metric > scheme->wmarks.high ?
                                        "high" : "low");
index 104b22957616b5f44fa954ac59ee23f925c8ee28..86b9f9528231efb52bfe1b791aaaffeb01315492 100644 (file)
@@ -145,7 +145,7 @@ static void damon_dbgfs_test_set_init_regions(struct kunit *test)
 
                KUNIT_EXPECT_STREQ(test, (char *)buf, expect);
        }
-       /* Put invlid inputs and check the return error code */
+       /* Put invalid inputs and check the return error code */
        for (i = 0; i < ARRAY_SIZE(invalid_inputs); i++) {
                input = invalid_inputs[i];
                pr_info("input: %s\n", input);
index 1f5c13257dbaf4ef8422b3de1cb83f60b6880e87..ecfd0b2ed222d065d97e1061704ef0fa96e5ad51 100644 (file)
@@ -233,7 +233,7 @@ static void damon_test_apply_three_regions3(struct kunit *test)
  * and 70-100) has totally freed and mapped to different area (30-32 and
  * 65-68).  The target regions which were in the old second and third big
  * regions should now be removed and new target regions covering the new second
- * and third big regions should be crated.
+ * and third big regions should be created.
  */
 static void damon_test_apply_three_regions4(struct kunit *test)
 {