]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc68565d50211b7bf87240ee87322794736158268
treec7834272b190caf85404b9761e24c6a9a856d1b7
parenta9567f82ddc360ed1d2f31e8907438f95b78f770
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