mm/damon: simplify scheme create in damon_lru_sort_apply_parameters
authorXin Hao <xhao@linux.alibaba.com>
Sun, 11 Sep 2022 00:59:17 +0000 (08:59 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:09 +0000 (14:03 -0700)
commit3791bc7bf1034dcce89541e54630d0307cc199fb
treec7834272b190caf85404b9761e24c6a9a856d1b7
parentf9bceb2f4114fe9a9725c922f9f1500d173d4763
mm/damon: simplify scheme create in damon_lru_sort_apply_parameters

In damon_lru_sort_apply_parameters(), we can use damon_set_schemes() to
replace the way of creating the first 'scheme' in original code, this
makes the code look cleaner.

Link: https://lkml.kernel.org/r/20220911005917.835-1-xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/lru_sort.c