Message ID | 20220915021024.4177940-2-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [-next,1/2] mm/damon/reclaim: change damon_reclaim_wmarks to static | expand |
On Thu, 15 Sep 2022 10:10:24 +0800 Yang Yingliang <yangyingliang@huawei.com> wrote: > damon_lru_sort_wmarks is only used in lru_sort.c now, change it to static. > > 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> Thanks, SJ > --- > mm/damon/lru_sort.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c > index 07a0908963fd..46e7c0738bc5 100644 > --- a/mm/damon/lru_sort.c > +++ b/mm/damon/lru_sort.c > @@ -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 */ > -- > 2.25.1
diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index 07a0908963fd..46e7c0738bc5 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -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 */
damon_lru_sort_wmarks is only used in lru_sort.c now, change it to static. Fixes: 189aa3d58206 ("mm/damon/lru_sort: use watermarks parameters generator macro") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- mm/damon/lru_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)