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

Link: https://lkml.kernel.org/r/20220915021024.4177940-2-yangyingliang@huawei.com
Fixes: 189aa3d58206 ("mm/damon/lru_sort: 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/lru_sort.c

index a91c1e364fc7b1405dc916a94ac88525f52c2fa3..4a40054ba03bf2c99354cdaa581545a9ba883f45 100644 (file)
@@ -77,7 +77,7 @@ static struct damos_quota damon_lru_sort_quota = {
 };
 DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(damon_lru_sort_quota);
 
-struct damos_watermarks damon_lru_sort_wmarks = {
+static struct damos_watermarks damon_lru_sort_wmarks = {
        .metric = DAMOS_WMARK_FREE_MEM_RATE,
        .interval = 5000000,    /* 5 seconds */
        .high = 200,            /* 20 percent */