* [PATCH][next] mm/damon: Fix a few spelling mistakes in comments and a pr_debug message
@ 2021-10-28 18:41 Colin Ian King
2021-10-28 18:51 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2021-10-28 18:41 UTC (permalink / raw)
To: SeongJae Park, Andrew Morton, linux-mm; +Cc: kernel-janitors, linux-kernel
There are a few spelling mistakes in the code. Fix these.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
mm/damon/core.c | 2 +-
mm/damon/dbgfs-test.h | 2 +-
mm/damon/vaddr-test.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index f37c17b53814..c381b3c525d0 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -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");
diff --git a/mm/damon/dbgfs-test.h b/mm/damon/dbgfs-test.h
index 104b22957616..86b9f9528231 100644
--- a/mm/damon/dbgfs-test.h
+++ b/mm/damon/dbgfs-test.h
@@ -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);
diff --git a/mm/damon/vaddr-test.h b/mm/damon/vaddr-test.h
index 1f5c13257dba..ecfd0b2ed222 100644
--- a/mm/damon/vaddr-test.h
+++ b/mm/damon/vaddr-test.h
@@ -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)
{
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][next] mm/damon: Fix a few spelling mistakes in comments and a pr_debug message
2021-10-28 18:41 [PATCH][next] mm/damon: Fix a few spelling mistakes in comments and a pr_debug message Colin Ian King
@ 2021-10-28 18:51 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2021-10-28 18:51 UTC (permalink / raw)
To: Colin Ian King
Cc: SeongJae Park, Andrew Morton, linux-mm, kernel-janitors, linux-kernel
On Thu, 28 Oct 2021 19:41:57 +0100 Colin Ian King <colin.i.king@googlemail.com> wrote:
> There are a few spelling mistakes in the code. Fix these.
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Thank you for the fixes!
Reviewed-by: SeongJae Park <sj@kernel.org>
Thanks,
SJ
> ---
> mm/damon/core.c | 2 +-
> mm/damon/dbgfs-test.h | 2 +-
> mm/damon/vaddr-test.h | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/mm/damon/core.c b/mm/damon/core.c
> index f37c17b53814..c381b3c525d0 100644
> --- a/mm/damon/core.c
> +++ b/mm/damon/core.c
> @@ -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");
> diff --git a/mm/damon/dbgfs-test.h b/mm/damon/dbgfs-test.h
> index 104b22957616..86b9f9528231 100644
> --- a/mm/damon/dbgfs-test.h
> +++ b/mm/damon/dbgfs-test.h
> @@ -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);
> diff --git a/mm/damon/vaddr-test.h b/mm/damon/vaddr-test.h
> index 1f5c13257dba..ecfd0b2ed222 100644
> --- a/mm/damon/vaddr-test.h
> +++ b/mm/damon/vaddr-test.h
> @@ -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)
> {
> --
> 2.32.0
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-28 18:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 18:41 [PATCH][next] mm/damon: Fix a few spelling mistakes in comments and a pr_debug message Colin Ian King
2021-10-28 18:51 ` SeongJae Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).