]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mm/damon: fix typos in comments
authorKevin Lourenco <klourencodev@gmail.com>
Wed, 17 Dec 2025 18:12:16 +0000 (19:12 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:48 +0000 (19:24 -0800)
Correct minor spelling mistakes in several files under mm/damon.  No
functional changes.

Link: https://lkml.kernel.org/r/20251217181216.47576-1-klourencodev@gmail.com
Signed-off-by: Kevin Lourenco <klourencodev@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c
mm/damon/lru_sort.c
mm/damon/reclaim.c
mm/damon/stat.c
mm/damon/tests/core-kunit.h

index f4d83e12ba0e432e21b1fe70070227eaa1930754..7f0028e23f92d2ce958dbbde6661fb89806aecdf 100644 (file)
@@ -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
@@ -1615,7 +1615,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)
@@ -2789,7 +2789,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;
index 49b4bc294f4e1eb626e7128ca47eaa0a6b0d9c95..9388b091deb71c2d54123d04971881c6c466ba1f 100644 (file)
@@ -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.
  */
index 36a582e09eaef178173947760c99b22dcf277ccd..8463a5a5032f2c9a00d033401ddeb53f2ede4a6d 100644 (file)
@@ -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.
  */
index ef0a1195a58499680e8e2579dd32d8b87b304a48..5e18b164f6d807355d5f761fea71ec0b20168c55 100644 (file)
@@ -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
index 8cb369b63e08eda3c58334ebdc2b622a0ac40246..f59ae7ee19a0cb9ef57be96f56a2240b04dc0704 100644 (file)
@@ -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.