]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/damon/reclaim: add 'damon_reclaim_' prefix to 'enabled_store()'
authorSeongJae Park <sj@kernel.org>
Mon, 6 Jun 2022 18:23:10 +0000 (18:23 +0000)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:38 +0000 (18:08 -0700)
This commit adds 'damon_reclaim_' prefix to 'enabled_store()', so that we
can distinguish it easily from the stack trace using 'faddr2line.sh' like
tools.

Link: https://lkml.kernel.org/r/20220606182310.48781-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c

index 38da28803d751dc8e0b4608a0fd9d64fbc648b24..e69b807fefe4388a9f29c2b639bdd6388819318a 100644 (file)
@@ -371,7 +371,7 @@ static DECLARE_DELAYED_WORK(damon_reclaim_timer, damon_reclaim_timer_fn);
 
 static bool damon_reclaim_initialized;
 
-static int enabled_store(const char *val,
+static int damon_reclaim_enabled_store(const char *val,
                const struct kernel_param *kp)
 {
        int rc = param_set_bool(val, kp);
@@ -388,7 +388,7 @@ static int enabled_store(const char *val,
 }
 
 static const struct kernel_param_ops enabled_param_ops = {
-       .set = enabled_store,
+       .set = damon_reclaim_enabled_store,
        .get = param_get_bool,
 };