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)
commitb3c28d886329d8df66679f72f3f3c81c0dd21e88
treec27fddac2ea91b91a993499e7e76da2df4892e49
parent135e128f8e48f30ea65e0ffad34dca37d2c8d171
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]