mm/damon/core: reduce parameters for damon_set_attrs()
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:33 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:10 +0000 (14:03 -0700)
commitbead3b00088eb8016b32cafa7e0701b3283e68a4
treea98c78ba2cc69a61f03493b998216d0a7bc5fc32
parentcbeaa77b044938cfe91818821ece6b0b1511e967
mm/damon/core: reduce parameters for damon_set_attrs()

Number of parameters for 'damon_set_attrs()' is six.  As it could be
confusing and verbose, this commit reduces the number by receiving single
pointer to a 'struct damon_attrs'.

Link: https://lkml.kernel.org/r/20220913174449.50645-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/dbgfs.c
mm/damon/lru_sort.c
mm/damon/reclaim.c
mm/damon/sysfs.c