]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/reclaim: use 'struct damon_attrs' for storing parameters for it
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:34 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:11 +0000 (14:03 -0700)
commitcbffd2563261d0210c4b1d90e22fdf14294eaaab
tree5ef1fe945be69a88fc5a8efe004b3fe832f55678
parent998ebc03aae6d94a57d67dfc0b6b3da92dd8c959
mm/damon/reclaim: use 'struct damon_attrs' for storing parameters for it

DAMON_RECLAIM receives monitoring attributes by parameters one by one to
separate variables, and then combine those into 'struct damon_attrs'.
This commit makes the module directly stores the parameter values to a
static 'struct damon_attrs' variable and use it to simplify the code.

Link: https://lkml.kernel.org/r/20220913174449.50645-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c