]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/damon/reclaim: change damon_reclaim_wmarks to static
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 15 Sep 2022 02:10:23 +0000 (10:10 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:27 +0000 (14:03 -0700)
damon_reclaim_wmarks is only used in reclaim.c now, change it to static.

Link: https://lkml.kernel.org/r/20220915021024.4177940-1-yangyingliang@huawei.com
Fixes: 89dd02d8abd1 ("mm/damon/reclaim: use watermarks parameters generator macro")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c

index 1acf808e16242142b53a6351ee4951dc0ec0b8ab..039fa55e0ae9cc81b39b852729c4a6e7db2a5f3c 100644 (file)
@@ -64,7 +64,7 @@ static struct damos_quota damon_reclaim_quota = {
 };
 DEFINE_DAMON_MODULES_DAMOS_QUOTAS(damon_reclaim_quota);
 
-struct damos_watermarks damon_reclaim_wmarks = {
+static struct damos_watermarks damon_reclaim_wmarks = {
        .metric = DAMOS_WMARK_FREE_MEM_RATE,
        .interval = 5000000,    /* 5 seconds */
        .high = 500,            /* 50 percent */