]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core: use a dedicated struct for monitoring attributes
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:32 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:10 +0000 (14:03 -0700)
commitca01e0523fa9d50ec13ce767ee94382bb25edf84
treee29224edf924d78632e8af0dc2b081e28825e862
parent6f06664c3e6751e7b9f2e4ed80b1b1ab905e2f56
mm/damon/core: use a dedicated struct for monitoring attributes

DAMON monitoring attributes are directly defined as fields of 'struct
damon_ctx'.  This makes 'struct damon_ctx' a little long and complicated.
This commit defines and uses a struct, 'struct damon_attrs', which is
dedicated for only the monitoring attributes to make the purpose of the
five values clearer and simplify 'struct damon_ctx'.

Link: https://lkml.kernel.org/r/20220913174449.50645-6-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/ops-common.c
mm/damon/vaddr.c