* [PATCH v2] mm/damon: fix typos in comments
@ 2025-12-17 22:46 klourencodev
2025-12-18 14:12 ` Enze Li
0 siblings, 1 reply; 2+ messages in thread
From: klourencodev @ 2025-12-17 22:46 UTC (permalink / raw)
To: damon; +Cc: linux-mm, Kevin Lourenco, SeongJae Park
From: Kevin Lourenco <klourencodev@gmail.com>
Correct minor spelling mistakes in several files under mm/damon.
No functional changes.
Signed-off-by: Kevin Lourenco <klourencodev@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
---
mm/damon/core.c | 6 +++---
mm/damon/lru_sort.c | 2 +-
mm/damon/reclaim.c | 2 +-
mm/damon/stat.c | 2 +-
mm/damon/tests/core-kunit.h | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 68dd2f7acba2..da4820110e48 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -284,7 +284,7 @@ struct damos_filter *damos_new_filter(enum damos_filter_type type,
}
/**
- * damos_filter_for_ops() - Return if the filter is ops-hndled one.
+ * damos_filter_for_ops() - Return if the filter is ops-handled one.
* @type: type of the filter.
*
* Return: true if the filter of @type needs to be handled by ops layer, false
@@ -1586,7 +1586,7 @@ static unsigned long damon_get_intervals_adaptation_bp(struct damon_ctx *c)
adaptation_bp = damon_feed_loop_next_input(100000000, score_bp) /
10000;
/*
- * adaptaion_bp ranges from 1 to 20,000. Avoid too rapid reduction of
+ * adaptation_bp ranges from 1 to 20,000. Avoid too rapid reduction of
* the intervals by rescaling [1,10,000] to [5000, 10,000].
*/
if (adaptation_bp <= 10000)
@@ -2756,7 +2756,7 @@ static int kdamond_fn(void *data)
*
* Reset ->next_aggregation_sis to avoid that.
* It will anyway correctly updated after this
- * if caluse.
+ * if clause.
*/
ctx->next_aggregation_sis =
next_aggregation_sis;
diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c
index 49b4bc294f4e..9388b091deb7 100644
--- a/mm/damon/lru_sort.c
+++ b/mm/damon/lru_sort.c
@@ -34,7 +34,7 @@ static bool enabled __read_mostly;
*
* Input parameters that updated while DAMON_LRU_SORT is running are not
* applied by default. Once this parameter is set as ``Y``, DAMON_LRU_SORT
- * reads values of parametrs except ``enabled`` again. Once the re-reading is
+ * reads values of parameters except ``enabled`` again. Once the re-reading is
* done, this parameter is set as ``N``. If invalid parameters are found while
* the re-reading, DAMON_LRU_SORT will be disabled.
*/
diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c
index 36a582e09eae..8463a5a5032f 100644
--- a/mm/damon/reclaim.c
+++ b/mm/damon/reclaim.c
@@ -34,7 +34,7 @@ static bool enabled __read_mostly;
*
* Input parameters that updated while DAMON_RECLAIM is running are not applied
* by default. Once this parameter is set as ``Y``, DAMON_RECLAIM reads values
- * of parametrs except ``enabled`` again. Once the re-reading is done, this
+ * of parameters except ``enabled`` again. Once the re-reading is done, this
* parameter is set as ``N``. If invalid parameters are found while the
* re-reading, DAMON_RECLAIM will be disabled.
*/
diff --git a/mm/damon/stat.c b/mm/damon/stat.c
index ef0a1195a584..5e18b164f6d8 100644
--- a/mm/damon/stat.c
+++ b/mm/damon/stat.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/*
- * Shows data access monitoring resutls in simple metrics.
+ * Shows data access monitoring results in simple metrics.
*/
#define pr_fmt(fmt) "damon-stat: " fmt
diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h
index 8cb369b63e08..f59ae7ee19a0 100644
--- a/mm/damon/tests/core-kunit.h
+++ b/mm/damon/tests/core-kunit.h
@@ -1159,7 +1159,7 @@ static void damon_test_set_filters_default_reject(struct kunit *test)
damos_set_filters_default_reject(&scheme);
/*
* A core-handled allow-filter is installed.
- * Rejct by default on core layer filtering stage due to the last
+ * Reject by default on core layer filtering stage due to the last
* core-layer-filter's behavior.
* Allow by default on ops layer filtering stage due to the absence of
* ops layer filters.
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mm/damon: fix typos in comments
2025-12-17 22:46 [PATCH v2] mm/damon: fix typos in comments klourencodev
@ 2025-12-18 14:12 ` Enze Li
0 siblings, 0 replies; 2+ messages in thread
From: Enze Li @ 2025-12-18 14:12 UTC (permalink / raw)
To: klourencodev; +Cc: linux-mm, SeongJae Park, damon
On 2025/12/18 06:46, klourencodev@gmail.com wrote:
> From: Kevin Lourenco <klourencodev@gmail.com>
>
> Correct minor spelling mistakes in several files under mm/damon.
> No functional changes.
>
> Signed-off-by: Kevin Lourenco <klourencodev@gmail.com>
> Reviewed-by: SeongJae Park <sj@kernel.org>
LGTM.
Reviewed-by: Enze Li <lienze@kylinos.cn>
> ---
> mm/damon/core.c | 6 +++---
> mm/damon/lru_sort.c | 2 +-
> mm/damon/reclaim.c | 2 +-
> mm/damon/stat.c | 2 +-
> mm/damon/tests/core-kunit.h | 2 +-
> 5 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/mm/damon/core.c b/mm/damon/core.c
> index 68dd2f7acba2..da4820110e48 100644
> --- a/mm/damon/core.c
> +++ b/mm/damon/core.c
> @@ -284,7 +284,7 @@ struct damos_filter *damos_new_filter(enum damos_filter_type type,
> }
>
> /**
> - * damos_filter_for_ops() - Return if the filter is ops-hndled one.
> + * damos_filter_for_ops() - Return if the filter is ops-handled one.
> * @type: type of the filter.
> *
> * Return: true if the filter of @type needs to be handled by ops layer, false
> @@ -1586,7 +1586,7 @@ static unsigned long damon_get_intervals_adaptation_bp(struct damon_ctx *c)
> adaptation_bp = damon_feed_loop_next_input(100000000, score_bp) /
> 10000;
> /*
> - * adaptaion_bp ranges from 1 to 20,000. Avoid too rapid reduction of
> + * adaptation_bp ranges from 1 to 20,000. Avoid too rapid reduction of
> * the intervals by rescaling [1,10,000] to [5000, 10,000].
> */
> if (adaptation_bp <= 10000)
> @@ -2756,7 +2756,7 @@ static int kdamond_fn(void *data)
> *
> * Reset ->next_aggregation_sis to avoid that.
> * It will anyway correctly updated after this
> - * if caluse.
> + * if clause.
> */
> ctx->next_aggregation_sis =
> next_aggregation_sis;
> diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c
> index 49b4bc294f4e..9388b091deb7 100644
> --- a/mm/damon/lru_sort.c
> +++ b/mm/damon/lru_sort.c
> @@ -34,7 +34,7 @@ static bool enabled __read_mostly;
> *
> * Input parameters that updated while DAMON_LRU_SORT is running are not
> * applied by default. Once this parameter is set as ``Y``, DAMON_LRU_SORT
> - * reads values of parametrs except ``enabled`` again. Once the re-reading is
> + * reads values of parameters except ``enabled`` again. Once the re-reading is
> * done, this parameter is set as ``N``. If invalid parameters are found while
> * the re-reading, DAMON_LRU_SORT will be disabled.
> */
> diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c
> index 36a582e09eae..8463a5a5032f 100644
> --- a/mm/damon/reclaim.c
> +++ b/mm/damon/reclaim.c
> @@ -34,7 +34,7 @@ static bool enabled __read_mostly;
> *
> * Input parameters that updated while DAMON_RECLAIM is running are not applied
> * by default. Once this parameter is set as ``Y``, DAMON_RECLAIM reads values
> - * of parametrs except ``enabled`` again. Once the re-reading is done, this
> + * of parameters except ``enabled`` again. Once the re-reading is done, this
> * parameter is set as ``N``. If invalid parameters are found while the
> * re-reading, DAMON_RECLAIM will be disabled.
> */
> diff --git a/mm/damon/stat.c b/mm/damon/stat.c
> index ef0a1195a584..5e18b164f6d8 100644
> --- a/mm/damon/stat.c
> +++ b/mm/damon/stat.c
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: GPL-2.0
> /*
> - * Shows data access monitoring resutls in simple metrics.
> + * Shows data access monitoring results in simple metrics.
> */
>
> #define pr_fmt(fmt) "damon-stat: " fmt
> diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h
> index 8cb369b63e08..f59ae7ee19a0 100644
> --- a/mm/damon/tests/core-kunit.h
> +++ b/mm/damon/tests/core-kunit.h
> @@ -1159,7 +1159,7 @@ static void damon_test_set_filters_default_reject(struct kunit *test)
> damos_set_filters_default_reject(&scheme);
> /*
> * A core-handled allow-filter is installed.
> - * Rejct by default on core layer filtering stage due to the last
> + * Reject by default on core layer filtering stage due to the last
> * core-layer-filter's behavior.
> * Allow by default on ops layer filtering stage due to the absence of
> * ops layer filters.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-18 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 22:46 [PATCH v2] mm/damon: fix typos in comments klourencodev
2025-12-18 14:12 ` Enze Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox