]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: implement a monitoring attributes module parameters generator macro
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:36 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:11 +0000 (14:03 -0700)
commitc91ebec7d8ff0edc2eaa522f2c5bec9e41d05056
treec27fddac2ea91b91a993499e7e76da2df4892e49
parente2f0eae4744170f603c45d4dd42dbd73985d2790
mm/damon: implement a monitoring attributes module parameters generator macro

DAMON_RECLAIM and DAMON_LRU_SORT have module parameters for monitoring
attributes that having same names.  This commot implements a macro for
generating such module parameters so that we can reuse later.

Link: https://lkml.kernel.org/r/20220913174449.50645-10-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/modules-common.h [new file with mode: 0644]